From: <sl...@ke...> - 2007-11-23 10:01:43
|
CVS Root: /cvs/gstreamer Module: gst-plugins-bad Changes by: slomo Date: Fri Nov 23 2007 10:01:47 UTC Log message: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_update_state): Also post GST_MESSAGE_LATENCY if the latency changes. Modified files: . : ChangeLog gst/speexresample: gstspeexresample.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.2880&r2=1.2881 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/speexresample/gstspeexresample.c.diff?r1=1.4&r2=1.5 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v retrieving revision 1.2880 retrieving revision 1.2881 diff -u -d -r1.2880 -r1.2881 --- ChangeLog 23 Nov 2007 08:48:45 -0000 1.2880 +++ ChangeLog 23 Nov 2007 10:01:32 -0000 1.2881 @@ -1,5 +1,11 @@ 2007-11-23 Sebastian Dröge <sl...@ci...> + * gst/speexresample/gstspeexresample.c: + (gst_speex_resample_update_state): + Also post GST_MESSAGE_LATENCY if the latency changes. + +2007-11-23 Sebastian Dröge <sl...@ci...> * gst/speexresample/resample.c: (speex_resampler_get_latency), (speex_resampler_drain_float), (speex_resampler_drain_int), (speex_resampler_drain_interleaved_float), Index: gstspeexresample.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/speexresample/gstspeexresample.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- gstspeexresample.c 23 Nov 2007 08:48:50 -0000 1.4 +++ gstspeexresample.c 23 Nov 2007 10:01:33 -0000 1.5 @@ -276,6 +276,10 @@ gint inrate, gint outrate, gint quality, gboolean fp) { gboolean ret = TRUE; + gboolean updated_latency = FALSE; + updated_latency = (resample->inrate != inrate + || quality != resample->quality); if (resample->state == NULL) { ret = TRUE; @@ -320,6 +324,10 @@ resample->inrate = inrate; resample->outrate = outrate; + if (updated_latency) + gst_element_post_message (GST_ELEMENT (resample), + gst_message_new_latency (GST_OBJECT (resample))); return ret; } |