mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gst/playback/gststreaminfo.c: Clean up some half-disabled code and comment.
Original commit message from CVS: * gst/playback/gststreaminfo.c: Clean up some half-disabled code and comment.
This commit is contained in:
parent
56e39e7c1c
commit
53c6315b6b
2 changed files with 26 additions and 13 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-09-05 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* gst/playback/gststreaminfo.c:
|
||||
Clean up some half-disabled code and comment.
|
||||
|
||||
2007-09-04 Wim Taymans <wim.taymans@gmail.com>
|
||||
|
||||
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
|
||||
|
|
|
@ -302,15 +302,22 @@ gst_stream_info_set_mute (GstStreamInfo * stream_info, gboolean mute)
|
|||
}
|
||||
|
||||
if (mute != stream_info->mute) {
|
||||
GstElement *element;
|
||||
/* nothing really happens here. it looks like gstplaybasebin installs a
|
||||
* buffer probe hat drops buffers when muting. but the this removes it self
|
||||
* after first call.
|
||||
*/
|
||||
|
||||
stream_info->mute = mute;
|
||||
// gst_pad_set_active ((GstPad *) GST_PAD_CAST (stream_info->object), !mute);
|
||||
#if 0
|
||||
gst_pad_set_active ((GstPad *) GST_PAD_CAST (stream_info->object), !mute);
|
||||
#endif
|
||||
#if 0
|
||||
{
|
||||
GstElement *element;
|
||||
|
||||
element = gst_pad_get_parent_element ((GstPad *)
|
||||
GST_PAD_CAST (stream_info->object));
|
||||
if (element) {
|
||||
#if 0
|
||||
if (mute) {
|
||||
g_signal_connect (element, "state-changed",
|
||||
G_CALLBACK (stream_info_change_state), stream_info);
|
||||
|
@ -318,9 +325,10 @@ gst_stream_info_set_mute (GstStreamInfo * stream_info, gboolean mute)
|
|||
g_signal_handlers_disconnect_by_func (element,
|
||||
G_CALLBACK (stream_info_change_state), stream_info);
|
||||
}
|
||||
#endif
|
||||
gst_object_unref (element);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue