mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
playbin2: implement GST_PLAY_FLAG_NATIVE_{AUDIO,VIDEO}
The flags where present but actually not been taken into account.
This commit is contained in:
parent
c6ab453eed
commit
f010a38b0d
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue