[rhythmbox/gstreamer-1.0: 7/22] visualizer: initial conversion to GStreamer 0.11
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/gstreamer-1.0: 7/22] visualizer: initial conversion to GStreamer 0.11
- Date: Mon, 5 Nov 2012 23:07:31 +0000 (UTC)
commit e404a7ae5f5e9e0377e7d8ba18d0667117ee1644
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Feb 27 23:04:10 2012 +1000
visualizer: initial conversion to GStreamer 0.11
We don't have a clutter-gst for 0.11 yet, so this won't work at all.
plugins/visualizer/rb-visualizer-menu.c | 2 +-
plugins/visualizer/rb-visualizer-page.c | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/plugins/visualizer/rb-visualizer-menu.c b/plugins/visualizer/rb-visualizer-menu.c
index d160ea2..b8dce3a 100644
--- a/plugins/visualizer/rb-visualizer-menu.c
+++ b/plugins/visualizer/rb-visualizer-menu.c
@@ -144,7 +144,7 @@ rb_visualizer_create_popup_menu (GtkToggleAction *fullscreen_action)
rb_debug ("building vis plugin list");
active_element = g_settings_get_string (settings, "vis-plugin");
- features = gst_registry_feature_filter (gst_registry_get_default (),
+ features = gst_registry_feature_filter (gst_registry_get (),
vis_plugin_filter,
FALSE, NULL);
for (t = features; t != NULL; t = t->next) {
diff --git a/plugins/visualizer/rb-visualizer-page.c b/plugins/visualizer/rb-visualizer-page.c
index b73f702..6741b88 100644
--- a/plugins/visualizer/rb-visualizer-page.c
+++ b/plugins/visualizer/rb-visualizer-page.c
@@ -374,11 +374,9 @@ impl_constructed (GObject *object)
g_object_set (realsink, "texture", page->texture, NULL);
colorspace = gst_element_factory_make ("ffmpegcolorspace", NULL);
- /* capsfilter to force rgb format (without this we end up using ayuv) */
+ /* capsfilter to force rgb format (without this we end up using ayuv) - XXX check this in 0.11 */
capsfilter = gst_element_factory_make ("capsfilter", NULL);
- caps = gst_caps_from_string ("video/x-raw-rgb,bpp=(int)24,depth=(int)24,"
- "endianness=(int)4321,red_mask=(int)16711680,"
- "green_mask=(int)65280,blue_mask=(int)255");
+ caps = gst_caps_from_string ("video/x-raw,format=(string)xRGB");
g_object_set (capsfilter, "caps", caps, NULL);
gst_caps_unref (caps);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]