[totem/gnome-3-8] thumbnailer: Fix thumbnailer not working when VAAPI is enabled
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-8] thumbnailer: Fix thumbnailer not working when VAAPI is enabled
- Date: Thu, 25 Jul 2013 17:13:50 +0000 (UTC)
commit 594d73daf65840d8f1709c8e03818f78304b0ccb
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jul 25 16:43:25 2013 +0200
thumbnailer: Fix thumbnailer not working when VAAPI is enabled
The vaapidecode plugin doesn't like our fake video sink, so disable
it completely.
src/totem-video-thumbnailer.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index 9a1ef4b..0fa2597 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -313,6 +313,8 @@ thumb_app_setup_play (ThumbApp *app)
{
GstElement *play;
GstElement *audio_sink, *video_sink;
+ GstRegistry *registry;
+ GstPluginFeature *feature;
play = gst_element_factory_make ("playbin", "play");
audio_sink = gst_element_factory_make ("fakesink", "audio-fake-sink");
@@ -326,6 +328,17 @@ thumb_app_setup_play (ThumbApp *app)
NULL);
app->play = play;
+
+ /* Disable the vaapi plugin as it will not work with the
+ * fakesink we use:
+ * See: https://bugzilla.gnome.org/show_bug.cgi?id=700186 */
+ registry = gst_registry_get ();
+ feature = gst_registry_find_feature (registry,
+ "vaapidecode",
+ GST_TYPE_ELEMENT_FACTORY);
+ if (!feature)
+ return;
+ gst_registry_remove_feature (registry, feature);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]