mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
mimdec: Don't overwrite valid timestamps
This commit is contained in:
parent
5fe455e28f
commit
297ab50ca1
1 changed files with 5 additions and 1 deletions
|
@ -154,6 +154,7 @@ gst_mimdec_chain (GstPad * pad, GstBuffer * in)
|
||||||
gint width, height;
|
gint width, height;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstFlowReturn res = GST_FLOW_OK;
|
GstFlowReturn res = GST_FLOW_OK;
|
||||||
|
GstClockTime in_time = GST_BUFFER_TIMESTAMP (in);
|
||||||
|
|
||||||
GST_DEBUG ("in gst_mimdec_chain");
|
GST_DEBUG ("in gst_mimdec_chain");
|
||||||
|
|
||||||
|
@ -289,7 +290,10 @@ gst_mimdec_chain (GstPad * pad, GstBuffer * in)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_BUFFER_TIMESTAMP (out_buf) = mimdec->current_ts * GST_MSECOND;
|
if (GST_CLOCK_TIME_IS_VALID (in_time))
|
||||||
|
GST_BUFFER_TIMESTAMP (out_buf) = in_time;
|
||||||
|
else
|
||||||
|
GST_BUFFER_TIMESTAMP (out_buf) = mimdec->current_ts * GST_MSECOND;
|
||||||
|
|
||||||
mimic_get_property (mimdec->dec, "width", &width);
|
mimic_get_property (mimdec->dec, "width", &width);
|
||||||
mimic_get_property (mimdec->dec, "height", &height);
|
mimic_get_property (mimdec->dec, "height", &height);
|
||||||
|
|
Loading…
Reference in a new issue