[longomatch] Update xoverlay element in null to ready
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Update xoverlay element in null to ready
- Date: Fri, 9 Nov 2012 01:31:10 +0000 (UTC)
commit db2715e5bf9ffcf9ed687f9b9d75fa30e69d7bb3
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Nov 9 02:19:16 2012 +0100
Update xoverlay element in null to ready
autovideosink creates a new sink but do not send
again the prepare-xwindow-id message
libcesarplayer/bacon-video-widget-gst-0.10.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libcesarplayer/bacon-video-widget-gst-0.10.c b/libcesarplayer/bacon-video-widget-gst-0.10.c
index c779c46..cd280af 100644
--- a/libcesarplayer/bacon-video-widget-gst-0.10.c
+++ b/libcesarplayer/bacon-video-widget-gst-0.10.c
@@ -1131,6 +1131,11 @@ bvw_bus_message_cb (GstBus * bus, GstMessage * message, gpointer data)
}
+ if (old_state == GST_STATE_NULL && new_state == GST_STATE_READY) {
+ bvw->priv->xoverlay = GST_X_OVERLAY (gst_bin_get_by_interface (
+ GST_BIN (bvw->priv->play), GST_TYPE_X_OVERLAY));
+ }
+
if (old_state == GST_STATE_READY && new_state == GST_STATE_PAUSED) {
GST_DEBUG_BIN_TO_DOT_FILE (GST_BIN_CAST (bvw->priv->play),
GST_DEBUG_GRAPH_SHOW_ALL ^
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]