[Bug 771648] subtitle not work when play rate is negative

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Sep 19 09:26:13 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=771648

--- Comment #1 from Haihua Hu <jared.hu at nxp.com> ---
By the way, I notice subparse has this piece of code, seems subparse will force
its own start/end time.

 242 static gboolean
 243 gst_sub_parse_src_event (GstPad * pad, GstObject * parent, GstEvent *
event)
 244 {
....
 259
 260       gst_event_parse_seek (event, &rate, &format, &flags,
 261           &start_type, &start, &stop_type, &stop);
 262
....
 268
 269       /* Apply the seek to our segment */
 270       gst_segment_do_seek (&self->segment, rate, format, flags,
 271           start_type, start, stop_type, stop, &update);
 272
 273       GST_DEBUG_OBJECT (self, "segment after seek: %" GST_SEGMENT_FORMAT,
 274           &self->segment);
 275
 276       /* Convert that seek to a seeking in bytes at position 0,
 277          FIXME: could use an index */
 278       ret = gst_pad_push_event (self->sinkpad,
 279           gst_event_new_seek (rate, GST_FORMAT_BYTES, flags,
 280               GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, 0));
 281
....
 293
 294 beach:
 295   return ret;
 296 }

-- 
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