diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-02-09 22:29:03 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-02-09 22:29:05 +0800 |
commit | 31debb1f437fc32ebeb389cae1eab92388be6bea (patch) | |
tree | ac0fdfb5a205af03c137db8dec6ce13cdfb8c191 /src | |
parent | b02e1667ba8c6e2af128ae461de082ea839dff56 (diff) | |
download | gsoc2013-empathy-31debb1f437fc32ebeb389cae1eab92388be6bea.tar gsoc2013-empathy-31debb1f437fc32ebeb389cae1eab92388be6bea.tar.gz gsoc2013-empathy-31debb1f437fc32ebeb389cae1eab92388be6bea.tar.bz2 gsoc2013-empathy-31debb1f437fc32ebeb389cae1eab92388be6bea.tar.lz gsoc2013-empathy-31debb1f437fc32ebeb389cae1eab92388be6bea.tar.xz gsoc2013-empathy-31debb1f437fc32ebeb389cae1eab92388be6bea.tar.zst gsoc2013-empathy-31debb1f437fc32ebeb389cae1eab92388be6bea.zip |
stop using clutter_gst_video_sink_new()
It has been deprecated.
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index a89d220c4..451722839 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -439,8 +439,11 @@ create_video_output_widget (EmpathyCallWindow *self) clutter_texture_set_keep_aspect_ratio (CLUTTER_TEXTURE (priv->video_output), TRUE); - priv->video_output_sink = clutter_gst_video_sink_new ( - CLUTTER_TEXTURE (priv->video_output)); + priv->video_output_sink = gst_element_factory_make ("cluttersink", NULL); + if (priv->video_output_sink == NULL) + g_error ("Missing cluttersink"); + else + g_object_set (priv->video_output_sink, "texture", priv->video_output, NULL); clutter_container_add_actor (CLUTTER_CONTAINER (priv->video_box), priv->video_output); @@ -1113,8 +1116,12 @@ create_video_preview (EmpathyCallWindow *self) preview = empathy_rounded_texture_new (); clutter_actor_set_size (preview, SELF_VIDEO_SECTION_WIDTH, SELF_VIDEO_SECTION_HEIGHT); - priv->video_preview_sink = clutter_gst_video_sink_new ( - CLUTTER_TEXTURE (preview)); + + priv->video_preview_sink = gst_element_factory_make ("cluttersink", NULL); + if (priv->video_preview_sink == NULL) + g_error ("Missing cluttersink"); + else + g_object_set (priv->video_preview_sink, "texture", preview, NULL); /* Add a little offset to the video preview */ layout = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_CENTER, |