[nautilus/wip/hadess/block-gst-vaapi: 5/6] audio-video-properties: Use totem_gst_disable_display_decoders()



commit 3d9d2ef8d1627d2efe56b6bad5c8f6e540f07ec4
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 12 13:41:32 2019 +0100

    audio-video-properties: Use totem_gst_disable_display_decoders()

 extensions/audio-video-properties/test-properties-page.c  | 2 ++
 extensions/audio-video-properties/totem-properties-main.c | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/extensions/audio-video-properties/test-properties-page.c 
b/extensions/audio-video-properties/test-properties-page.c
index 124f6db8e..21be43a34 100644
--- a/extensions/audio-video-properties/test-properties-page.c
+++ b/extensions/audio-video-properties/test-properties-page.c
@@ -22,6 +22,7 @@
 #define GST_USE_UNSTABLE_API 1
 #include <gst/gst.h>
 #include <glib/gi18n-lib.h>
+#include "totem-gst-helpers.h"
 #include "totem-properties-view.h"
 
 static GtkWidget *window, *props, *label;
@@ -55,6 +56,7 @@ int main (int argc, char **argv)
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
        textdomain (GETTEXT_PACKAGE);
 
+       totem_gst_disable_display_decoders ();
        gst_init (&argc, &argv);
        gtk_init (&argc, &argv);
 
diff --git a/extensions/audio-video-properties/totem-properties-main.c 
b/extensions/audio-video-properties/totem-properties-main.c
index 576198ea8..2bbd520c3 100644
--- a/extensions/audio-video-properties/totem-properties-main.c
+++ b/extensions/audio-video-properties/totem-properties-main.c
@@ -26,6 +26,7 @@
 #include <gst/gst.h>
 
 #include "totem-properties-view.h"
+#include "totem-gst-helpers.h"
 #include <nautilus-extension.h>
 
 #define WANT_MIME_TYPES 1
@@ -76,6 +77,7 @@ static gpointer
 init_backend (gpointer data)
 {
        gst_init (NULL, NULL);
+       totem_gst_disable_display_decoders ();
        return NULL;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]