playback: add GST_PLAY_FLAG_FORCE_SW_DECODERS enum
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 3 Nov 2019 14:16:04 +0000 (15:16 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 9 Jan 2020 12:28:32 +0000 (12:28 +0000)
This flag would be common either for playbin2 and playbin3.

gst/playback/gstplay-enum.c
gst/playback/gstplay-enum.h

index dd8afd7..fce8f6f 100644 (file)
@@ -69,6 +69,8 @@ gst_play_flags_get_type (void)
         "soft-colorbalance"},
     {C_FLAGS (GST_PLAY_FLAG_FORCE_FILTERS),
         "Force audio/video filter(s) to be applied", "force-filters"},
+    {C_FLAGS (GST_PLAY_FLAG_FORCE_SW_DECODERS),
+        "Force only software-based decoders", "force-sw-decoders"},
     {0, NULL, NULL}
   };
   static volatile GType id = 0;
index 1e0ed37..122b67e 100644 (file)
@@ -60,6 +60,8 @@ GType gst_autoplug_select_result_get_type (void);
  * @GST_PLAY_FLAG_SOFT_COLORBALANCE: Use a software filter for colour balance
  * @GST_PLAY_FLAG_FORCE_FILTERS: force audio/video filters to be applied if
  *   set.
+ * @GST_PLAY_FLAG_FORCE_SW_DECODERS: force to use only software-based
+ *   decoders ignoring those with hardware class.
  *
  * Extra flags to configure the behaviour of the sinks.
  */
@@ -76,6 +78,7 @@ typedef enum {
   GST_PLAY_FLAG_DEINTERLACE   = (1 << 9),
   GST_PLAY_FLAG_SOFT_COLORBALANCE = (1 << 10),
   GST_PLAY_FLAG_FORCE_FILTERS = (1 << 11),
+  GST_PLAY_FLAG_FORCE_SW_DECODERS = (1 << 12),
 } GstPlayFlags;
 
 #define GST_TYPE_PLAY_FLAGS (gst_play_flags_get_type())