From: Benjamin O. <co...@pd...> - 2004-01-15 03:04:36
|
CVS Root: /home/cvs/gstreamer Module: gst-plugins Changes by: company Date: Wed Jan 14 2004 19:05:47 PST Log message: 2004-01-15 Benjamin Otte <in...@pu...> * ext/mad/gstid3tag.c: (gst_id3_tag_do_caps_nego): assume tag mode when pad is not connected Modified files: . : ChangeLog ext/mad : gstid3tag.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ChangeLog.diff?r1=1.135&r2=1.136 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ext/mad/gstid3tag.c.diff?r1=1.10&r2=1.11 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/ChangeLog,v retrieving revision 1.135 retrieving revision 1.136 diff -u -d -r1.135 -r1.136 --- ChangeLog 15 Jan 2004 02:14:54 -0000 1.135 +++ ChangeLog 15 Jan 2004 03:05:35 -0000 1.136 @@ -1,5 +1,10 @@ 2004-01-15 Benjamin Otte <in...@pu...> + * ext/mad/gstid3tag.c: (gst_id3_tag_do_caps_nego): + assume tag mode when pad is not connected + +2004-01-15 Benjamin Otte <in...@pu...> + * ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event): Don't update the time of the clock (gst_alsa_sink_loop): Index: gstid3tag.c =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/ext/mad/gstid3tag.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- gstid3tag.c 7 Jan 2004 03:06:19 -0000 1.10 +++ gstid3tag.c 15 Jan 2004 03:05:35 -0000 1.11 @@ -763,7 +763,12 @@ } 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 |