gst-plugins-good: pulsesink: Add a getcaps function

Stefan Sauer ensonic at hora-obscura.de
Tue Jun 11 13:09:55 PDT 2013


On 06/10/2013 09:51 AM, Arun Raghavan wrote:
> Module: gst-plugins-good
> Branch: master
> Commit: 14e784f9fc629af4c33b41dae159aa5060fb8f5f
> URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=14e784f9fc629af4c33b41dae159aa5060fb8f5f
>
> Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
> Date:   Thu May 23 21:57:08 2013 +0530
>
> pulsesink: Add a getcaps function
>
> This allows us to have more fine-tuned caps in READY or above. However,
> this is _really_ inefficient since we create a new stream and query sink
> for every getcaps in READY, which on a simple gst-launch line happens
> about 35 times. The next step is to cache getcaps results.
>
> https://bugzilla.gnome.org/show_bug.cgi?id=686459
>
Some of the function used are from pulseaudio >= 2.0, but configure
checks for 1.0 only. Would be sweet if you can define some fallbacks or
make the code conditional.

pulsesink.c: In function 'gst_pulse_format_info_int_prop_to_value':
pulsesink.c:2028:3: error: implicit declaration of function
'pa_format_info_get_prop_int' [-Werror=implicit-function-declaration]
pulsesink.c:2028:3: error: nested extern declaration of
'pa_format_info_get_prop_int' [-Werror=nested-externs]
pulsesink.c:2032:3: error: implicit declaration of function
'pa_format_info_get_prop_int_array' [-Werror=implicit-function-declaration]
pulsesink.c:2032:3: error: nested extern declaration of
'pa_format_info_get_prop_int_array' [-Werror=nested-externs]
pulsesink.c:2043:3: error: implicit declaration of function
'pa_format_info_get_prop_int_range' [-Werror=implicit-function-declaration]
pulsesink.c:2043:3: error: nested extern declaration of
'pa_format_info_get_prop_int_range' [-Werror=nested-externs]
pulsesink.c: In function 'gst_pulse_format_info_to_caps':
pulsesink.c:2066:7: error: implicit declaration of function
'pa_format_info_to_sample_spec' [-Werror=implicit-function-declaration]
pulsesink.c:2066:7: error: nested extern declaration of
'pa_format_info_to_sample_spec' [-Werror=nested-externs]
pulsesink.c:2068:7: error: implicit declaration of function
'pa_format_info_get_prop_string' [-Werror=implicit-function-declaration]



More information about the gstreamer-devel mailing list