mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-12 09:15:29 +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>
|
2007-09-04 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
|
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
|
||||||
|
|
|
@ -302,24 +302,32 @@ gst_stream_info_set_mute (GstStreamInfo * stream_info, gboolean mute)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mute != stream_info->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;
|
stream_info->mute = mute;
|
||||||
// gst_pad_set_active ((GstPad *) GST_PAD_CAST (stream_info->object), !mute);
|
|
||||||
|
|
||||||
element = gst_pad_get_parent_element ((GstPad *)
|
|
||||||
GST_PAD_CAST (stream_info->object));
|
|
||||||
if (element) {
|
|
||||||
#if 0
|
#if 0
|
||||||
if (mute) {
|
gst_pad_set_active ((GstPad *) GST_PAD_CAST (stream_info->object), !mute);
|
||||||
g_signal_connect (element, "state-changed",
|
#endif
|
||||||
G_CALLBACK (stream_info_change_state), stream_info);
|
#if 0
|
||||||
} else {
|
{
|
||||||
g_signal_handlers_disconnect_by_func (element,
|
GstElement *element;
|
||||||
G_CALLBACK (stream_info_change_state), stream_info);
|
|
||||||
|
element = gst_pad_get_parent_element ((GstPad *)
|
||||||
|
GST_PAD_CAST (stream_info->object));
|
||||||
|
if (element) {
|
||||||
|
if (mute) {
|
||||||
|
g_signal_connect (element, "state-changed",
|
||||||
|
G_CALLBACK (stream_info_change_state), stream_info);
|
||||||
|
} else {
|
||||||
|
g_signal_handlers_disconnect_by_func (element,
|
||||||
|
G_CALLBACK (stream_info_change_state), stream_info);
|
||||||
|
}
|
||||||
|
gst_object_unref (element);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
gst_object_unref (element);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue