Gstreamer crash, when playing a Transport Stream

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer crash, when playing a Transport Stream

ak.ashwini
HI Guys,
 
  I am trying to play a Transport stream in my application (using APIs). It plays for sometime and then it crashes while allocating a buffer of size = 65536 in mpegtsdemux.
 
My pipe looks like
 
   filesrc location=/abc.trp ! mpegtsparse ! mpegtsdemux name=demux program-number=6 ! video/mpeg ! queue ! decodebin ! ffmpegcolorspace ! appsink demux. ! queue ! audioconvert ! alsasink
 
For appsink i am listening to the "new-buffer" signal. I pull the buffer from appsink, (At this point do I need to free/unref the pulled buffer?)
 
Is there some possible leak which is causing it to crash, Any help is appreciated.
 
Regards,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer crash, when playing a Transport Stream

leelakrishna
no need to allocate memory for gstbuffer when pulling from appsink...
you can use directly like this....

GstBuffer *buffer;
buffer=gst_app_sink_pull_buffer(GST_APP_SINK(appsink));

if i am wrong can u post that code i can see it...