aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-07-19 16:25:53 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-07-19 16:25:53 +0200
commit9a031092d5459534c9383ec51c84863f4863b266 (patch)
tree7aa583fc1596525f184958afdf5fbca64321e636 /plugins
parent98dca7e37c70596c7df3a5e1f4297c1318c18fa6 (diff)
Imported Upstream version 1.4.0upstream/1.4.0
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gsttypefindelement.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c
index 400c370..02ce2be 100644
--- a/plugins/elements/gsttypefindelement.c
+++ b/plugins/elements/gsttypefindelement.c
@@ -540,6 +540,7 @@ stop_typefinding (GstTypeFindElement * typefind)
gboolean push_cached_buffers;
gsize avail;
GstBuffer *buffer;
+ GstClockTime pts, dts;
gst_element_get_state (GST_ELEMENT (typefind), &state, NULL, 0);
@@ -557,7 +558,11 @@ stop_typefinding (GstTypeFindElement * typefind)
if (avail == 0)
goto no_data;
+ pts = gst_adapter_prev_pts (typefind->adapter, NULL);
+ dts = gst_adapter_prev_dts (typefind->adapter, NULL);
buffer = gst_adapter_take_buffer (typefind->adapter, avail);
+ GST_BUFFER_PTS (buffer) = pts;
+ GST_BUFFER_DTS (buffer) = dts;
GST_OBJECT_UNLOCK (typefind);
if (!push_cached_buffers) {