tsdemux: Need to send a newsegment after a seek
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Tue, 23 Aug 2011 22:44:17 +0000 (22:44 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 24 Aug 2011 06:12:29 +0000 (08:12 +0200)
gst/mpegtsdemux/tsdemux.c

index df618300aa36e3ffee4c0a913844745ba2eae425..e314dd2e15a324397b5ca450ba2a3b2dc66a8b3e 100644 (file)
@@ -882,9 +882,10 @@ gst_ts_demux_srcpad_event (GstPad * pad, GstEvent * event)
   switch (GST_EVENT_TYPE (event)) {
     case GST_EVENT_SEEK:
       res = mpegts_base_handle_seek_event ((MpegTSBase *) demux, pad, event);
-      if (!res) {
+      if (res)
+        demux->need_newsegment = TRUE;
+      else
         GST_WARNING ("seeking failed");
-      }
       gst_event_unref (event);
       break;
     default: