[gstreamer-bugs] [Bug 440127] New: Autoaudiosink does extra switching between null and ready with sink
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Mon May 21 02:07:07 PDT 2007
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=440127
GStreamer | gst-plugins-good | Ver: HEAD CVS
Summary: Autoaudiosink does extra switching between null and
ready with sink
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-good
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: ext-tommi.myohanen at nokia.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
gst_auto_audio_sink_find_best() currently finds an actual sink and leaves it to
READY state. However soon the state is switched temporarily back to NULL when
syncing state with autoaudiosink container in gst_auto_audio_sink_detect():
/* find element */
GST_DEBUG_OBJECT (sink, "Creating new kid");
if (!(esink = gst_auto_audio_sink_find_best (sink))) {
return FALSE;
}
sink->kid = esink;
gst_element_set_state (sink->kid, GST_STATE (sink));
gst_bin_add (GST_BIN (sink), esink);
Is it necessary to set the state of actual sink according to container state
before adding it? The state of autoaudiosink is always NULL here since we're
doing null_to_ready state change. It would be good to avoid extra switches
between null and ready states if the opening of audio device is slow.
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=440127.
More information about the Gstreamer-bugs
mailing list