Commit 85f9831b authored by Ronald S. Bultje's avatar Ronald S. Bultje

add some extra checking on validity of pads before using them

Original commit message from CVS:
add some extra checking on validity of pads before using them
parent 05b50db5
......@@ -1042,6 +1042,8 @@ gst_avimux_fill_queue (GstAviMux *avimux)
GstBuffer *buffer;
if (!avimux->audio_buffer_queue &&
avimux->audiosinkpad &&
avimux->audio_pad_connected &&
GST_PAD_IS_USABLE(avimux->audiosinkpad) &&
!avimux->audio_pad_eos)
{
......@@ -1061,6 +1063,8 @@ gst_avimux_fill_queue (GstAviMux *avimux)
}
if (!avimux->video_buffer_queue &&
avimux->videosinkpad &&
avimux->video_pad_connected &&
GST_PAD_IS_USABLE(avimux->videosinkpad) &&
!avimux->video_pad_eos)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment