[totem/wip/hadess/properties-vaapi-crash-fix: 9/10] thumbnailer: Use new totem_gst_disable_display_decoders() helper
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/properties-vaapi-crash-fix: 9/10] thumbnailer: Use new totem_gst_disable_display_decoders() helper
- Date: Mon, 14 Jan 2019 16:02:17 +0000 (UTC)
commit 2a381a76d57a252abd33fc71f20baa734c3b4c94
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jan 10 13:36:08 2019 +0100
thumbnailer: Use new totem_gst_disable_display_decoders() helper
src/totem-video-thumbnailer.c | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
---
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index fd4849a8..11a380ce 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -383,13 +383,6 @@ thumb_app_setup_play (ThumbApp *app)
{
GstElement *play;
GstElement *audio_sink, *video_sink;
- GstRegistry *registry;
- const char *blacklisted_plugins[] = {
- "bmcdec",
- "vaapi",
- "video4linux2"
- };
- guint i;
play = gst_element_factory_make ("playbin", "play");
audio_sink = gst_element_factory_make ("fakesink", "audio-fake-sink");
@@ -404,19 +397,7 @@ thumb_app_setup_play (ThumbApp *app)
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 and
- * https://bugzilla.gnome.org/show_bug.cgi?id=749605 */
- registry = gst_registry_get ();
-
- for (i = 0; i < G_N_ELEMENTS (blacklisted_plugins); i++) {
- GstPlugin *plugin =
- gst_registry_find_plugin (registry,
- blacklisted_plugins[i]);
- if (plugin)
- gst_registry_remove_plugin (registry, plugin);
- }
+ totem_gst_disable_display_decoders ();
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]