[totem/wip/hadess/add-sw-rendering: 3/4] gst: Rename totem_gst_disable_display_decoders()




commit c3f06be9b930f6e85f2d27b05fcc987763f8aaf2
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 15 12:22:29 2022 +0100

    gst: Rename totem_gst_disable_display_decoders()
    
    It now disables all the hardware decoders.

 src/gst/totem-gst-helpers.c     | 4 +---
 src/gst/totem-gst-helpers.h     | 2 +-
 src/totem-gallery-thumbnailer.c | 2 +-
 src/totem-video-thumbnailer.c   | 2 +-
 4 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/gst/totem-gst-helpers.c b/src/gst/totem-gst-helpers.c
index 212910da5..231c21d36 100644
--- a/src/gst/totem-gst-helpers.c
+++ b/src/gst/totem-gst-helpers.c
@@ -93,10 +93,8 @@ filter_hw_decoders (GstPluginFeature *feature,
                                           GST_ELEMENT_FACTORY_TYPE_HARDWARE);
 }
 
-/* Disable decoders that require a display environment to work,
- * and that might cause crashes */
 void
-totem_gst_disable_display_decoders (void)
+totem_gst_disable_hardware_decoders (void)
 {
   GstRegistry *registry;
   g_autolist(GstPluginFeature) hw_list = NULL;
diff --git a/src/gst/totem-gst-helpers.h b/src/gst/totem-gst-helpers.h
index 3b5bc1a48..b1d5d01b2 100644
--- a/src/gst/totem-gst-helpers.h
+++ b/src/gst/totem-gst-helpers.h
@@ -54,7 +54,7 @@ void totem_gst_message_print (GstMessage *msg,
                              GstElement *play,
                              const char *filename);
 
-void totem_gst_disable_display_decoders (void);
+void totem_gst_disable_hardware_decoders (void);
 
 G_END_DECLS
 
diff --git a/src/totem-gallery-thumbnailer.c b/src/totem-gallery-thumbnailer.c
index 4f7585531..1d9b51965 100644
--- a/src/totem-gallery-thumbnailer.c
+++ b/src/totem-gallery-thumbnailer.c
@@ -358,7 +358,7 @@ thumb_app_setup_play (ThumbApp *app)
 
        app->play = play;
 
-       totem_gst_disable_display_decoders ();
+       totem_gst_disable_hardware_decoders ();
 }
 
 static void
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index ec2c5c4af..70d5a7950 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -396,7 +396,7 @@ thumb_app_setup_play (ThumbApp *app)
 
        app->play = play;
 
-       totem_gst_disable_display_decoders ();
+       totem_gst_disable_hardware_decoders ();
 }
 
 static void


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