From: Andy Wingo Date: Sun, 6 Jan 2002 18:58:55 +0000 (+0000) Subject: open up the interface if capsnego is called and we're in NULL this happens if caps... X-Git-Tag: DEBIAN-0_3_1-1~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d27dab7dae7ec61c928db31a486f3b8bd65d367;p=platform%2Fupstream%2Fgst-plugins-base.git open up the interface if capsnego is called and we're in NULL this happens if caps can be determined before the pipel... Original commit message from CVS: open up the interface if capsnego is called and we're in NULL this happens if caps can be determined before the pipeline is running and this is alsasink, as in afsrc ! alsasink --- diff --git a/ext/alsa/gstalsa.c b/ext/alsa/gstalsa.c index db13c99..ba99669 100644 --- a/ext/alsa/gstalsa.c +++ b/ext/alsa/gstalsa.c @@ -734,7 +734,8 @@ gst_alsa_negotiate(GstPad *pad, GstCaps **caps, gpointer *user_data) // have we got caps? else if (*caps) { if (this->handle == NULL) - return GST_PAD_NEGOTIATE_FAIL; + if (!gst_alsa_open_audio(this)) + return GST_PAD_NEGOTIATE_FAIL; if (gst_alsa_parse_caps(this, *caps)) { need_mmap = this->mmap_open;