mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-01 13:49:58 +00:00
ext/mad/gstid3tag.c: assume tag mode when pad is not connected
Original commit message from CVS: 2004-01-15 Benjamin Otte <in7y118@public.uni-hamburg.de> * ext/mad/gstid3tag.c: (gst_id3_tag_do_caps_nego): assume tag mode when pad is not connected
This commit is contained in:
parent
7ad667ff78
commit
4d89f431aa
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-01-15 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* ext/mad/gstid3tag.c: (gst_id3_tag_do_caps_nego):
|
||||
assume tag mode when pad is not connected
|
||||
|
||||
2004-01-15 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event):
|
||||
|
|
|
@ -763,7 +763,12 @@ gst_id3_tag_do_caps_nego (GstID3Tag *tag, GstBuffer *buffer)
|
|||
}
|
||||
if (!tag->srcpad)
|
||||
gst_id3_tag_add_src_pad (tag);
|
||||
return gst_pad_renegotiate (tag->srcpad) != GST_PAD_LINK_REFUSED;
|
||||
if (!gst_pad_is_linked (tag->srcpad)) {
|
||||
tag->parse_mode = GST_ID3_TAG_PARSE_TAG;
|
||||
return TRUE;
|
||||
} else {
|
||||
return gst_pad_renegotiate (tag->srcpad) == GST_PAD_LINK_REFUSED;
|
||||
}
|
||||
}
|
||||
|
||||
static GstPadLinkReturn
|
||||
|
|
Loading…
Reference in a new issue