Not able connect to alsa sink

Stefan Kost ensonic at hora-obscura.de
Thu Jul 28 01:09:29 PDT 2011


On 07/25/11 17:32, vijay wrote:
> Hi,
> I am writing a decoder plugin for mp3 decoder, when i am try to
> connect to alsasink,i am getting error as,
>
> ERROR: from element /GstPipeline:pipeline0/GstAlsa
> Sink:alsasink0: The stream is in the wrong format.
> Additional debug info:
> gstbaseaudiosink.c(929): gst_base_audio_sink_preroll ():
> /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
> sink not negotiated.
> ERROR: pipeline doesn't want to preroll.

That is not enough context. Either post some code snippets, or e.g. add
a GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS to the bus error message handler
(check gst-launch source code for how to) and run your app with
GST_DEBUG_DUMP_DOT_DIR=$PWD ./myapp to check the caps on both sides of
the link where it fails.

Stefan

>
> I have set the capabilities as,
>
> static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
>   GST_PAD_SRC,
>   GST_PAD_ALWAYS,
>   GST_STATIC_CAPS ( "audio/x-raw-int, "
>   "rate = (int) [ 1, MAX ], "
>   "channels = (int) [ 1, MAX ], "
>   "endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, "
>   "width = (int) 16, "
>   "depth = (int) [ 1, 16 ], "
>   "signed = (boolean) { true, false }")
>   );
>
> Regards,
> Vijay P
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list