decodebin3: fix condition about factory selection 11/231111/1 accepted/tizen/unified/20200422.032205 submit/tizen/20200421.025806
authorEunhye Choi <eunhae1.choi@samsung.com>
Fri, 17 Apr 2020 08:41:44 +0000 (17:41 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Fri, 17 Apr 2020 08:41:46 +0000 (17:41 +0900)
Change-Id: I6b23a227bf928ce140dca3959dff848373860462

gst/playback/gstdecodebin3.c

index e3791aa94ce81f2fafe74b7bbcca2e498c38fc5a..fdec1bedf6eeb8fc97c83b293b90b8d371ebada7 100644 (file)
@@ -1158,7 +1158,7 @@ gst_decode_bin_update_factories_list (GstDecodebin3 * dbin)
 #ifdef TIZEN_FEATURE_FORCE_SW_DECODER
         if  (!(dbin->force_sw_decoders_for_video &&
              gst_element_factory_list_is_type (fact, GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO) &&
-             gst_element_factory_list_is_type (fact, GST_ELEMENT_FACTORY_TYPE_HARDWARE)) ||
+             gst_element_factory_list_is_type (fact, GST_ELEMENT_FACTORY_TYPE_HARDWARE)) &&
              !(dbin->force_sw_decoders_for_audio &&
              gst_element_factory_list_is_type (fact, GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO) &&
              gst_element_factory_list_is_type (fact, GST_ELEMENT_FACTORY_TYPE_HARDWARE))) {