From d50c71708a1dd2be120bc4b46c38cb09084a9cba Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Sun, 3 Nov 2019 15:16:04 +0100 Subject: [PATCH] playback: add GST_PLAY_FLAG_FORCE_SW_DECODERS enum This flag would be common either for playbin2 and playbin3. --- gst/playback/gstplay-enum.c | 2 ++ gst/playback/gstplay-enum.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/gst/playback/gstplay-enum.c b/gst/playback/gstplay-enum.c index dd8afd7..fce8f6f 100644 --- a/gst/playback/gstplay-enum.c +++ b/gst/playback/gstplay-enum.c @@ -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; diff --git a/gst/playback/gstplay-enum.h b/gst/playback/gstplay-enum.h index 1e0ed37..122b67e 100644 --- a/gst/playback/gstplay-enum.h +++ b/gst/playback/gstplay-enum.h @@ -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()) -- 2.7.4