Index: gst/dvdsub/gstdvdsubdec.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-ugly/gst/dvdsub/gstdvdsubdec.c,v
retrieving revision 1.4
diff -u -p -r1.4 gstdvdsubdec.c
--- gst/dvdsub/gstdvdsubdec.c	25 Apr 2006 12:17:02 -0000	1.4
+++ gst/dvdsub/gstdvdsubdec.c	5 Aug 2006 09:59:57 -0000
@@ -664,7 +664,7 @@ gst_send_subtitle_frame (GstDvdSubDec * 
       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,
