summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-09-26 01:04:32 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-26 01:05:52 +0100
commit49350969125e7e27f6eb5048816d7fe697fa144b (patch)
tree2814b53f3f0a8abeb8d0454553cf1d93bf2609e0 /ext
parent2c82b981dbb3422fd941658526eb5c1647f6795b (diff)
x264enc: when setting fallback decoder latency, set valid min_latency
Min. latency needs to be a valid time, so pass 0 as default value in the fallback case where we can't determine any latency, and avoid nasty criticals at runtime.
Diffstat (limited to 'ext')
-rw-r--r--ext/x264/gstx264enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index a8b3f9c0..6bfb16f7 100644
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
@@ -1397,7 +1397,7 @@ gst_x264_enc_set_latency (GstX264Enc * encoder)
} else {
/* We can't do live as we don't know our latency */
gst_video_encoder_set_latency (GST_VIDEO_ENCODER (encoder),
- GST_CLOCK_TIME_NONE, GST_CLOCK_TIME_NONE);
+ 0, GST_CLOCK_TIME_NONE);
}
}