[longomatch] Increase wait time for preroll
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Increase wait time for preroll
- Date: Wed, 24 Sep 2014 20:32:04 +0000 (UTC)
commit 9d0b5a72fd968e5b21e09a53ca4c7b1502eb025b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Aug 16 00:13:09 2014 +0200
Increase wait time for preroll
Some files take longuer than 2 seconds to preroll
libcesarplayer/gst-nle-source.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/gst-nle-source.c b/libcesarplayer/gst-nle-source.c
index 44dad5d..108cc91 100644
--- a/libcesarplayer/gst-nle-source.c
+++ b/libcesarplayer/gst-nle-source.c
@@ -644,7 +644,8 @@ gst_nle_source_next (GstNleSource * nlesrc)
GST_DEBUG_OBJECT (nlesrc, "Start ts:%" GST_TIME_FORMAT,
GST_TIME_ARGS (nlesrc->start_ts));
gst_element_set_state (nlesrc->decoder, GST_STATE_PLAYING);
- ret = gst_element_get_state (nlesrc->decoder, &state, NULL, 2 * GST_SECOND);
+ ret = gst_element_get_state (nlesrc->decoder, &state,
+ NULL, 5 * GST_SECOND);
if (ret == GST_STATE_CHANGE_FAILURE) {
GST_WARNING_OBJECT (nlesrc, "Error changing state, selecting next item.");
gst_nle_source_check_eos (nlesrc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]