Merge "[0.6.195] apply the RM policy about audio offload" into tizen accepted/tizen/unified/20190620.123715 submit/tizen/20190620.045213
authoreunhae choi <eunhae1.choi@samsung.com>
Thu, 20 Jun 2019 03:56:05 +0000 (03:56 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 20 Jun 2019 03:56:05 +0000 (03:56 +0000)
src/mm_player_priv.c

index d1a71ef..42528d6 100644 (file)
@@ -964,16 +964,12 @@ __mmplayer_gst_selector_event_probe(GstPad *pad, GstPadProbeInfo *info, gpointer
        mmplayer_track_type_e stream_type = MM_PLAYER_TRACK_TYPE_VIDEO;
        gboolean caps_ret = TRUE;
 
-       if (GST_EVENT_IS_DOWNSTREAM(event) &&
-           GST_EVENT_TYPE(event) != GST_EVENT_STREAM_START &&
-           GST_EVENT_TYPE(event) != GST_EVENT_FLUSH_STOP &&
-           GST_EVENT_TYPE(event) != GST_EVENT_SEGMENT &&
-           GST_EVENT_TYPE(event) != GST_EVENT_EOS) {
+       if (GST_EVENT_TYPE(event) != GST_EVENT_STREAM_START &&
+               GST_EVENT_TYPE(event) != GST_EVENT_FLUSH_STOP &&
+               GST_EVENT_TYPE(event) != GST_EVENT_SEGMENT &&
+               GST_EVENT_TYPE(event) != GST_EVENT_EOS &&
+               GST_EVENT_TYPE(event) != GST_EVENT_QOS)
                return ret;
-       } else if (GST_EVENT_IS_UPSTREAM(event) &&
-                          GST_EVENT_TYPE(event) != GST_EVENT_QOS) {
-               return ret;
-       }
 
        MMPLAYER_GST_GET_CAPS_INFO(pad, caps, str, name, caps_ret);
        if (!caps_ret)