summaryrefslogtreecommitdiff
path: root/gst/avi
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-01-31 23:42:58 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-01-31 23:42:58 +0000
commit85f9831b2fb8f4fa1bcf122f50e0f8cd8b5ee52f (patch)
tree12aa17d66cd2b4afb55f89f1d03de9c100b681e7 /gst/avi
parent05b50db50a250e017ae9399ba51e47992e7fc41f (diff)
downloadgstreamer-plugins-good-85f9831b2fb8f4fa1bcf122f50e0f8cd8b5ee52f.tar.gz
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
Diffstat (limited to 'gst/avi')
-rw-r--r--gst/avi/gstavimux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c
index bcb7f42db..e80fcd862 100644
--- a/gst/avi/gstavimux.c
+++ b/gst/avi/gstavimux.c
@@ -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)
{