From: Vincent Penquerc'h Date: Wed, 19 Oct 2011 13:13:30 +0000 (+0100) Subject: playsink: re-add identity where appropriate X-Git-Tag: 1.19.3~511^2~6555^2~361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cac680faccd6d2c1396339f1994a63d971697d2;p=platform%2Fupstream%2Fgstreamer.git playsink: re-add identity where appropriate https://bugzilla.gnome.org/show_bug.cgi?id=661262 --- diff --git a/gst/playback/gstplaysinkaudioconvert.c b/gst/playback/gstplaysinkaudioconvert.c index 44572b4..f8783d0 100644 --- a/gst/playback/gstplaysinkaudioconvert.c +++ b/gst/playback/gstplaysinkaudioconvert.c @@ -134,6 +134,7 @@ gst_play_sink_audio_convert_set_property (GObject * object, guint prop_id, GST_DEBUG_OBJECT (self, "Rebuilding converter bin"); gst_play_sink_convert_bin_remove_elements (cbin); gst_play_sink_audio_convert_add_conversion_elements (self); + gst_play_sink_convert_bin_add_identity (cbin); gst_play_sink_convert_bin_cache_converter_caps (cbin); } GST_PLAY_SINK_CONVERT_BIN_UNLOCK (self); diff --git a/gst/playback/gstplaysinkconvertbin.c b/gst/playback/gstplaysinkconvertbin.c index 6123d11..545b9e5 100644 --- a/gst/playback/gstplaysinkconvertbin.c +++ b/gst/playback/gstplaysinkconvertbin.c @@ -123,7 +123,7 @@ gst_play_sink_convert_bin_add_conversion_element_factory (GstPlaySinkConvertBin return el; } -static void +void gst_play_sink_convert_bin_add_identity (GstPlaySinkConvertBin * self) { self->identity = gst_element_factory_make ("identity", "identity"); diff --git a/gst/playback/gstplaysinkconvertbin.h b/gst/playback/gstplaysinkconvertbin.h index d8379ef..0e71866 100644 --- a/gst/playback/gstplaysinkconvertbin.h +++ b/gst/playback/gstplaysinkconvertbin.h @@ -96,6 +96,8 @@ void gst_play_sink_convert_bin_cache_converter_caps (GstPlaySinkConvertBin * self); void gst_play_sink_convert_bin_remove_elements (GstPlaySinkConvertBin * self); +void +gst_play_sink_convert_bin_add_identity (GstPlaySinkConvertBin * self); G_END_DECLS #endif /* __GST_PLAY_SINK_CONVERT_BIN_H__ */