mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
05b50db50a
commit
85f9831b2f
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue