mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
ext/vorbis/vorbisdec.c: Check for pad availability before doing a query on it.
Original commit message from CVS: * ext/vorbis/vorbisdec.c: (vorbis_dec_src_query): Check for pad availability before doing a query on it.
This commit is contained in:
parent
87b55ed7be
commit
e59bf40bb1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-01-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/vorbis/vorbisdec.c: (vorbis_dec_src_query):
|
||||
Check for pad availability before doing a query on it.
|
||||
|
||||
2005-01-08 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
|
||||
|
||||
* ext/dv/gstdvdec.c:
|
||||
|
|
|
@ -246,7 +246,7 @@ vorbis_dec_src_query (GstPad * pad, GstQueryType query, GstFormat * format,
|
|||
granulepos = dec->granulepos;
|
||||
} else {
|
||||
/* query peer in default format */
|
||||
if (!dec->sinkpad ||
|
||||
if (!dec->sinkpad || !GST_PAD_PEER (dec->sinkpad) ||
|
||||
!gst_pad_query (GST_PAD_PEER (dec->sinkpad), query, &my_format,
|
||||
&granulepos))
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue