dvdsubdec: Take the highlight event from the structure.
Don't use GST_EVENT_TIMESTAMP to transfer any PTS associated with a highlight event, instead store it in the event structure directly, as GstEvent::timestamp will disappear in GStreamer 2.0 https://bugzilla.gnome.org/show_bug.cgi?id=761477
This commit is contained in:
parent
6b01999087
commit
c789277ec0
@ -950,10 +950,13 @@ gst_dvd_sub_dec_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_EVENT_CUSTOM_DOWNSTREAM:{
|
case GST_EVENT_CUSTOM_DOWNSTREAM:{
|
||||||
GstClockTime ts = GST_EVENT_TIMESTAMP (event);
|
|
||||||
|
|
||||||
if (gst_event_has_name (event, "application/x-gst-dvd")) {
|
if (gst_event_has_name (event, "application/x-gst-dvd")) {
|
||||||
if (GST_CLOCK_TIME_IS_VALID (ts))
|
const GstStructure *s = gst_event_get_structure (event);
|
||||||
|
GstClockTime ts = GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
|
if (gst_structure_get_clock_time (s, "ts", &ts)
|
||||||
|
&& GST_CLOCK_TIME_IS_VALID (ts))
|
||||||
gst_dvd_sub_dec_advance_time (dec, ts);
|
gst_dvd_sub_dec_advance_time (dec, ts);
|
||||||
|
|
||||||
if (gst_dvd_sub_dec_handle_dvd_event (dec, event)) {
|
if (gst_dvd_sub_dec_handle_dvd_event (dec, event)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user