mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ext/gconf/gstgconfaudiosink.c: Don't reset the profile when going switching states, as it makes the element non-reusa...
Original commit message from CVS: * ext/gconf/gstgconfaudiosink.c: (gst_gconf_audio_sink_reset), (do_change_child): Don't reset the profile when going switching states, as it makes the element non-reusable.
This commit is contained in:
parent
6021b92465
commit
3b5868a9e0
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-02-14 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* ext/gconf/gstgconfaudiosink.c: (gst_gconf_audio_sink_reset),
|
||||||
|
(do_change_child):
|
||||||
|
Don't reset the profile when going switching states, as it makes
|
||||||
|
the element non-reusable.
|
||||||
|
|
||||||
2007-02-14 Wim Taymans <wim@fluendo.com>
|
2007-02-14 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/rtsp/sdpmessage.c: (sdp_origin_init), (sdp_connection_init),
|
* gst/rtsp/sdpmessage.c: (sdp_origin_init), (sdp_connection_init),
|
||||||
|
|
|
@ -105,8 +105,6 @@ gst_gconf_audio_sink_reset (GstGConfAudioSink * sink)
|
||||||
|
|
||||||
g_free (sink->gconf_str);
|
g_free (sink->gconf_str);
|
||||||
sink->gconf_str = NULL;
|
sink->gconf_str = NULL;
|
||||||
|
|
||||||
gst_gconf_switch_profile (sink, GCONF_PROFILE_NONE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -146,6 +144,9 @@ do_change_child (GstGConfAudioSink * sink)
|
||||||
gchar *new_gconf_str;
|
gchar *new_gconf_str;
|
||||||
GstElement *new_kid;
|
GstElement *new_kid;
|
||||||
|
|
||||||
|
if (sink->profile == GCONF_PROFILE_NONE)
|
||||||
|
return FALSE; /* Can't switch to a 'NONE' sink */
|
||||||
|
|
||||||
key = gst_gconf_get_key_for_sink_profile (sink->profile);
|
key = gst_gconf_get_key_for_sink_profile (sink->profile);
|
||||||
new_gconf_str = gst_gconf_get_string (key);
|
new_gconf_str = gst_gconf_get_string (key);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue