[totem] backend: Merge helper into unique caller
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Merge helper into unique caller
- Date: Sat, 21 Apr 2012 13:48:23 +0000 (UTC)
commit 04357d01dcbf749ad0256c566916fc2413d29f34
Author: Bastien Nocera <hadess hadess net>
Date: Sat Apr 21 14:48:05 2012 +0100
backend: Merge helper into unique caller
src/backend/bacon-video-widget-gst-0.10.c | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 4c78dbe..f08fad5 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -2067,18 +2067,6 @@ bvw_bus_message_cb (GstBus * bus, GstMessage * message, BaconVideoWidget *bvw)
}
static void
-got_video_size (BaconVideoWidget * bvw)
-{
- GstMessage *msg;
-
- msg = gst_message_new_application (GST_OBJECT (bvw->priv->play),
- gst_structure_new ("video-size", "width", G_TYPE_INT,
- bvw->priv->video_width, "height", G_TYPE_INT,
- bvw->priv->video_height, NULL));
- gst_element_post_message (bvw->priv->play, msg);
-}
-
-static void
got_time_tick (GstElement * play, gint64 time_nanos, BaconVideoWidget * bvw)
{
gboolean seekable;
@@ -4740,9 +4728,14 @@ bacon_video_widget_set_aspect_ratio (BaconVideoWidget *bvw,
BvwAspectRatio ratio)
{
g_return_if_fail (BACON_IS_VIDEO_WIDGET (bvw));
+ GstMessage *msg;
bvw->priv->ratio_type = ratio;
- got_video_size (bvw);
+ msg = gst_message_new_application (GST_OBJECT (bvw->priv->play),
+ gst_structure_new ("video-size", "width", G_TYPE_INT,
+ bvw->priv->video_width, "height", G_TYPE_INT,
+ bvw->priv->video_height, NULL));
+ gst_element_post_message (bvw->priv->play, msg);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]