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
This commit is contained in:
Ronald S. Bultje 2003-01-31 23:42:58 +00:00
parent 05b50db50a
commit 85f9831b2f

View file

@ -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)
{