gst/dvdsub/gstdvdsubdec.c: which happens when you use macros that got changed during...
authorFrédéric Riss <frederic.riss@gmail.com>
Mon, 7 Aug 2006 09:17:01 +0000 (09:17 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 7 Aug 2006 09:17:01 +0000 (09:17 +0000)
Original commit message from CVS:
Patch by: Frédéric Riss  <frederic.riss at gmail com>
* gst/dvdsub/gstdvdsubdec.c: (gst_send_subtitle_frame):
Don't set negative durations on outgoing buffers (#350044),
which happens when you use macros that got changed during
the last unstable cycle because they were thought not to
be used anywhere.

ChangeLog
gst/dvdsub/gstdvdsubdec.c

index 5b84b47..b6dc2ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-08-07  Tim-Philipp Müller  <tim at centricular dot net>
+
+       Patch by: Frédéric Riss  <frederic.riss at gmail com>
+
+       * gst/dvdsub/gstdvdsubdec.c: (gst_send_subtitle_frame):
+         Don't set negative durations on outgoing buffers (#350044),
+         which happens when you use macros that got changed during
+         the last unstable cycle because they were thought not to
+         be used anywhere.
+         
 2006-08-06  Tim-Philipp Müller  <tim at centricular dot net>
 
        * ext/dvdread/dvdreadsrc.c: (gst_dvd_read_src_stop),
index 2d39e3a..dd05fc2 100644 (file)
@@ -664,7 +664,7 @@ gst_send_subtitle_frame (GstDvdSubDec * dec, GstClockTime end_ts)
       GST_BUFFER_SIZE (dec->out_buffer));
 
   GST_BUFFER_TIMESTAMP (out_buf) = dec->next_ts;
-  GST_BUFFER_DURATION (out_buf) = GST_CLOCK_DIFF (end_ts, dec->next_ts);
+  GST_BUFFER_DURATION (out_buf) = GST_CLOCK_DIFF (dec->next_ts, end_ts);
 
   GST_DEBUG_OBJECT (dec, "Sending subtitle buffer with ts %"
       GST_TIME_FORMAT ", dur %" G_GINT64_FORMAT,