[longomatch] Add a default timeout in the discoverer



commit 54c0f9ebca32ef9e8b6b0f314a681bf43b9f54fc
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Jan 7 12:26:32 2015 +0100

    Add a default timeout in the discoverer

 libcesarplayer/lgm-video-player.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/lgm-video-player.c b/libcesarplayer/lgm-video-player.c
index 87790d7..b1b9cc6 100644
--- a/libcesarplayer/lgm-video-player.c
+++ b/libcesarplayer/lgm-video-player.c
@@ -495,7 +495,7 @@ lgm_video_player_open (LgmVideoPlayer * lvp, const gchar * uri, GError ** error)
     /* used as thumbnailer, wait for state change to finish. */
     GST_INFO ("waiting for state changed to PAUSED to complete");
     ret = poll_for_state_change_full (lvp, lvp->priv->play,
-        GST_STATE_PAUSED, &err_msg, -1);
+        GST_STATE_PAUSED, &err_msg, 5 * GST_SECOND);
     lgm_video_player_get_stream_length (lvp);
     GST_INFO ("stream length = %u", lvp->priv->stream_length);
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]