After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 771648 - subtitle not work when play rate is negative
subtitle not work when play rate is negative
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-09-19 09:22 UTC by Haihua Hu
Modified: 2018-11-03 11:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
subparse: fix critical log print out when set rate <0 with external subtitle (1.17 KB, patch)
2017-03-30 05:54 UTC, Haihua Hu
none Details | Review

Description Haihua Hu 2016-09-19 09:22:03 UTC
I use playbin to play a out of band subtitle, when I set play rate to -2, the subtitle will disappear and print serveral critical message:

(gplay-1.0:1586): GStreamer-CRITICAL **: gst_segment_to_running_time_full: assertion 'stop != -1' failed
Comment 1 Haihua Hu 2016-09-19 09:26:13 UTC
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 }
Comment 2 Haihua Hu 2016-09-23 00:34:40 UTC
Any update?
Comment 3 Haihua Hu 2017-03-30 05:54:58 UTC
Created attachment 348970 [details] [review]
subparse: fix critical log print out when set rate <0 with external subtitle
Comment 4 GStreamer system administrator 2018-11-03 11:50:05 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/294.