gst_pad_push API is flushing

Tim Müller tim at centricular.com
Thu Dec 19 06:58:55 PST 2013


On Thu, 2013-12-19 at 06:46 -0800, vindi503 wrote:

Hi,

> But Now I am still getting the return value of gst_pad_push as
> GST_FLOW_NOT_LINKED.
> Where I might be going wrong?
> 
> here is the piece of code (which will create the pad, set the event fxn and
> activate it and then call gst_pad_push API)
> 
> demux->videosrcpad =  
>         gst_pad_new_from_static_template (&gst_qtdemux_videosrc_template,
> "video_0");
>   
>   gst_pad_set_event_function (demux->videosrcpad,
> GST_DEBUG_FUNCPTR(gst_parse_video_event));
>   gst_pad_set_active(demux->videosrcpad, TRUE);
> 
> ret = gst_pad_push(demux->videosrcpad, inbuf);
> 
> Do I need to make use of gst_pad_link() API ?

Well, if you were writing your own application then yes. With
gst-launch-1.0, gst-launch should automatically link the pad to the next
element as requested. It's possible that it's not doing this in your
case here, because you never set any pads on the pad, and maybe it's
waiting for that. Check the GST_DEBUG log to see what's happening
between you activating the pad and pushing the buffer.

Cheers
 -Tim

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






More information about the gstreamer-devel mailing list