diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-11-08 08:17:56 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-11-08 08:22:52 +0800 |
commit | 64a173ce325b9ba30079ce5b9f3bbe1615302ecb (patch) | |
tree | de432548011f686eb145bb0b4f9db217d4f0ddb4 /src/empathy-streamed-media-window.c | |
parent | 945df143a94c9c64c925591e09e6dd28c43408ff (diff) | |
download | gsoc2013-empathy-64a173ce325b9ba30079ce5b9f3bbe1615302ecb.tar gsoc2013-empathy-64a173ce325b9ba30079ce5b9f3bbe1615302ecb.tar.gz gsoc2013-empathy-64a173ce325b9ba30079ce5b9f3bbe1615302ecb.tar.bz2 gsoc2013-empathy-64a173ce325b9ba30079ce5b9f3bbe1615302ecb.tar.lz gsoc2013-empathy-64a173ce325b9ba30079ce5b9f3bbe1615302ecb.tar.xz gsoc2013-empathy-64a173ce325b9ba30079ce5b9f3bbe1615302ecb.tar.zst gsoc2013-empathy-64a173ce325b9ba30079ce5b9f3bbe1615302ecb.zip |
Remove dead files codec-preferences and element-preferences
These are now handled for us by Farsight. Hooray for Farsight.
Diffstat (limited to 'src/empathy-streamed-media-window.c')
-rw-r--r-- | src/empathy-streamed-media-window.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/src/empathy-streamed-media-window.c b/src/empathy-streamed-media-window.c index c74910b6b..22ecbd282 100644 --- a/src/empathy-streamed-media-window.c +++ b/src/empathy-streamed-media-window.c @@ -35,6 +35,7 @@ #include <telepathy-glib/util.h> #include <gst/farsight/fs-element-added-notifier.h> +#include <gst/farsight/fs-utils.h> #include <libempathy/empathy-tp-contact-factory.h> #include <libempathy/empathy-utils.h> @@ -981,8 +982,6 @@ empathy_streamed_media_window_init (EmpathyStreamedMediaWindow *self) GtkWidget *arrow; GtkWidget *page; gchar *filename; - GKeyFile *keyfile; - GError *error = NULL; GtkWidget *scroll; filename = empathy_file_lookup ("empathy-streamed-media-window.ui", "src"); @@ -1084,21 +1083,6 @@ empathy_streamed_media_window_init (EmpathyStreamedMediaWindow *self) /* The call will be started as soon the pipeline is playing */ priv->start_call_when_playing = TRUE; - keyfile = g_key_file_new (); - filename = empathy_file_lookup ("element-properties", "data"); - if (g_key_file_load_from_file (keyfile, filename, G_KEY_FILE_NONE, &error)) - { - fs_element_added_notifier_set_properties_from_keyfile (priv->fsnotifier, - keyfile); - } - else - { - g_warning ("Could not load element-properties file: %s", error->message); - g_key_file_free (keyfile); - g_clear_error (&error); - } - g_free (filename); - priv->vbox = gtk_vbox_new (FALSE, 3); gtk_box_pack_start (GTK_BOX (priv->content_hbox), priv->vbox, FALSE, FALSE, CONTENT_HBOX_CHILDREN_PACKING_PADDING); @@ -1759,6 +1743,12 @@ empathy_streamed_media_window_conference_added_cb (EmpathyStreamedMediaHandler * { EmpathyStreamedMediaWindow *self = EMPATHY_STREAMED_MEDIA_WINDOW (user_data); EmpathyStreamedMediaWindowPriv *priv = GET_PRIV (self); + GKeyFile *keyfile; + + keyfile = fs_utils_get_default_element_properties (conference); + if (keyfile != NULL) + fs_element_added_notifier_set_properties_from_keyfile (priv->fsnotifier, + keyfile); gst_bin_add (GST_BIN (priv->pipeline), conference); |