Can not setting "max-bytes" property on "appsrc" element

Tim Müller tim at centricular.com
Mon Jun 9 04:56:34 PDT 2014


On Mon, 2014-06-09 at 11:11 +0800, jojo wrote:

Hi,

> Gstreamer version is gstreamer-1.0-android-arm-1.2.3
> 
> 
> i launched pipeline command as "playbin uri=appsrc://" and set
> pipeline status to GST_STATE_READY
> 
> 
> in the signal "source-setup", i set "max-bytes" looks like as
> following:
> 
> 
> gst_src = gst_object_ref (source);
> gst_app_src_set_max_bytes((GstAppSrc *)gst_src, 0);
> 
> 
> but when i am using the API gst_app_src_push_buffer((GstAppSrc
> *)gst_src, buffer), the max bytes property still is default
> value(200000).
> 
> 
> i print log as : (snip)

Do you see a log message like "gst_app_src_set_max_bytes: ... setting
max-bytes to 0" ? If not, that would suggest, that that code path was
not reached, and the only explanation for that would be that the gst_src
pointer you pass to gst_app_src_set_max_bytes() is not actually a
GstAppSrc. Maybe your callback function signature isn't quite right -
could you post your whole source-setup callback function?

 Cheers
  -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list