From: Stefan Kost Date: Wed, 4 Feb 2009 11:53:30 +0000 (+0200) Subject: playbin2: implement GST_PLAY_FLAG_NATIVE_{AUDIO,VIDEO} X-Git-Tag: 1.19.3~511^2~10031 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f010a38b0de18d8902e0c84acd17df2a9a274bab;p=platform%2Fupstream%2Fgstreamer.git playbin2: implement GST_PLAY_FLAG_NATIVE_{AUDIO,VIDEO} The flags where present but actually not been taken into account. --- diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index f8681b6..822cc45 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -736,7 +736,7 @@ gen_video_chain (GstPlaySink * playsink, gboolean raw, gboolean async) gst_bin_add (bin, chain->queue); prev = chain->queue; - if (raw) { + if (raw && !(playsink->flags & GST_PLAY_FLAG_NATIVE_VIDEO)) { GST_DEBUG_OBJECT (playsink, "creating ffmpegcolorspace"); chain->conv = gst_element_factory_make ("ffmpegcolorspace", "vconv"); if (chain->conv == NULL) { @@ -977,7 +977,7 @@ gen_audio_chain (GstPlaySink * playsink, gboolean raw, gboolean queue) have_volume = FALSE; } - if (raw) { + if (raw && !(playsink->flags & GST_PLAY_FLAG_NATIVE_AUDIO)) { GST_DEBUG_OBJECT (playsink, "creating audioconvert"); chain->conv = gst_element_factory_make ("audioconvert", "aconv"); if (chain->conv == NULL) {