[longomatch/0.20] Increase wait time for preroll



commit 331b0aa514bb83106635589e3bb2f68590407213
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 4d45a16..1a90569 100644
--- a/libcesarplayer/gst-nle-source.c
+++ b/libcesarplayer/gst-nle-source.c
@@ -642,7 +642,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]