summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2013-09-20 08:15:43 +0200
committerJosep Torra <n770galaxy@gmail.com>2013-09-20 08:15:43 +0200
commite3ecca0659c0be7a57b336d7d341b698ab0020f8 (patch)
tree7f6a3f6ea073c22311a14875f231f09ddbbc6dbd
parente701d5bc4423d1e3e9b334fb896ae926f69e1130 (diff)
downloadgst-omx-e3ecca0659c0be7a57b336d7d341b698ab0020f8.tar.gz
basevideodecoder: disable reordered PTS detections
This feature doesn't works in the rpi because it buffers a lot of frames internally.
-rw-r--r--omx/video/gstvideodecoder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/omx/video/gstvideodecoder.c b/omx/video/gstvideodecoder.c
index cbc4569..47976f9 100644
--- a/omx/video/gstvideodecoder.c
+++ b/omx/video/gstvideodecoder.c
@@ -2016,12 +2016,14 @@ gst_video_decoder_prepare_finish_frame (GstVideoDecoder *
priv->reorder_idx_out =
(priv->reorder_idx_out + 1) % MAX_DTS_PTS_REORDER_DEPTH;
+#if 0
if (!priv->reordered_output && frame->system_frame_number &&
priv->last_out_frame_number != (guint) (-1) &&
frame->system_frame_number != (priv->last_out_frame_number + 1)) {
GST_DEBUG_OBJECT (decoder, "Detected reordered output");
priv->reordered_output = TRUE;
}
+#endif
GST_LOG_OBJECT (decoder,
"finish frame %p (#%d) sync:%d pts:%" GST_TIME_FORMAT " dts:%"
@@ -2539,12 +2541,14 @@ gst_video_decoder_decode_frame (GstVideoDecoder * decoder,
frame->pts);
/* Store pts */
+#if 0
if (GST_CLOCK_TIME_IS_VALID (frame->pts)
&& GST_CLOCK_TIME_IS_VALID (priv->last_timestamp_in)
&& frame->pts < priv->last_timestamp_in) {
GST_DEBUG_OBJECT (decoder, "Incoming timestamps are out of order");
priv->reordered_input = TRUE;
}
+#endif
priv->last_timestamp_in = frame->pts;
priv->incoming_timestamps[priv->reorder_idx_in] = frame->pts;
priv->reorder_idx_in = (priv->reorder_idx_in + 1) % MAX_DTS_PTS_REORDER_DEPTH;