gst_pad_push API is flushing

vindi503 vindi503 at gmail.com
Wed Dec 18 00:52:37 PST 2013


Hi Tim,

Thanks for the reply,

Yes, Its one of my avbdemuxer pad i.e video pad.

I will just add few lines of code about what i am doing before calling
gst_pad_push API
 
  stream = g_malloc(sizeof(QtDemuxStream));
  stream->pad = g_malloc(sizeof(GstPad));

  stream->pad =
        gst_pad_new_from_static_template (&gst_qtdemux_videosrc_template,
"video_0");

gst_pad_push(stream->pad, buffer);

here buffer is of size 1024. And gst_qtdemux_videosrc_template is created in
the beginning of my program.

static GstStaticPadTemplate gst_qtdemux_videosrc_template =
GST_STATIC_PAD_TEMPLATE ("video_%u",
    GST_PAD_SRC,
    GST_PAD_SOMETIMES,
    GST_STATIC_CAPS_ANY);

In the Init function, below line is called
gst_element_class_add_pad_template (gstelement_class,
      gst_static_pad_template_get (&gst_qtdemux_videosrc_template));

As you mentioned to call gst_pad_set_active, If I add
gst_pad_set_active(stream->pad, TRUE); I
get error: " Data is not Pushed " which is an indication of not getting
linked itself.

Thanks,
Vinay 



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-pad-push-API-is-flushing-tp4664116p4664139.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list