[longomatch/livecapturemerged: 66/84] Always wait for a state change before trying to ge the last frame
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/livecapturemerged: 66/84] Always wait for a state change before trying to ge the last frame
- Date: Tue, 11 May 2010 00:53:32 +0000 (UTC)
commit 8ca82df2e534f2668a1cd5fed510a32561cfef70
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]