[longomatch/livecapture2: 28/31] Always wait for a state change before trying to ge the last frame



commit 2fad7efcd389b497497125d2a909ec85e1aa2a25
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat May 1 13:31:28 2010 +0200

    Always wait for a state change before trying to ge the last frame

 libcesarplayer/src/bacon-video-widget-gst-0.10.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/libcesarplayer/src/bacon-video-widget-gst-0.10.c b/libcesarplayer/src/bacon-video-widget-gst-0.10.c
index fbe2fa5..2374f3a 100644
--- a/libcesarplayer/src/bacon-video-widget-gst-0.10.c
+++ b/libcesarplayer/src/bacon-video-widget-gst-0.10.c
@@ -5577,11 +5577,12 @@ bacon_video_widget_get_current_frame (BaconVideoWidget * bvw)
   g_return_val_if_fail (BACON_IS_VIDEO_WIDGET (bvw), NULL);
   g_return_val_if_fail (GST_IS_ELEMENT (bvw->priv->play), NULL);
 
-  /* when used as thumbnailer, wait for pending seeks to complete */
-  if (bvw->priv->use_type == BVW_USE_TYPE_CAPTURE)
-    {
-      gst_element_get_state (bvw->priv->play, NULL, NULL, -1);
-    }
+  /*[> when used as thumbnailer, wait for pending seeks to complete <]*/
+  /*if (bvw->priv->use_type == BVW_USE_TYPE_CAPTURE)*/
+    /*{*/
+      /*gst_element_get_state (bvw->priv->play, NULL, NULL, -1);*/
+    /*}*/
+  gst_element_get_state (bvw->priv->play, NULL, NULL, -1);
 
   /* no video info */
   if (!bvw->priv->video_width || !bvw->priv->video_height)



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