From: Víctor Manuel Jáquez Leal Date: Sun, 3 Nov 2019 14:16:04 +0000 (+0100) Subject: playback: add GST_PLAY_FLAG_FORCE_SW_DECODERS enum X-Git-Tag: 1.19.3~511^2~806 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d50c71708a1dd2be120bc4b46c38cb09084a9cba;p=platform%2Fupstream%2Fgstreamer.git playback: add GST_PLAY_FLAG_FORCE_SW_DECODERS enum This flag would be common either for playbin2 and playbin3. --- 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())