[Bug 680252] [playbin2] Hang during OGG -> FLAC transition

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Dec 3 06:32:07 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=680252
  GStreamer | gst-plugins-base | 0.10.36

--- Comment #15 from Christoph Reiter <christoph.reiter at gmx.at> 2012-12-03 14:32:04 UTC ---
I can confirm that the above fix also works for 0.10

diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c
b/gst-libs/gst/audio/gstbasea
index e7ff30d..5066ca9 100644
--- a/gst-libs/gst/audio/gstbaseaudiosink.c
+++ b/gst-libs/gst/audio/gstbaseaudiosink.c
@@ -921,6 +921,12 @@ gst_base_audio_sink_setcaps (GstBaseSink * bsink, GstCaps
*
   if (!gst_ring_buffer_acquire (sink->ringbuffer, spec))
     goto acquire_error;

+  /* We need to resync since the ringbuffer restarted */
+  sink->priv->avg_skew = -1;
+  sink->next_sample = -1;
+  sink->priv->eos_time = -1;
+  sink->priv->discont_time = -1;
+
   if (bsink->pad_mode == GST_ACTIVATE_PUSH) {
     GST_DEBUG_OBJECT (sink, "activate ringbuffer");
     gst_ring_buffer_activate (sink->ringbuffer, TRUE);

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list