[gst-devel] need help for debugging a plugin
Dragos Cirjan
dragos.cirjan at gmail.com
Wed Sep 24 10:53:34 CEST 2008
Hi guys. I need some help with a plugin I wrote.
It's a CURL based source plugin. I know I'm reinventing the wheel but, I
really need to finish this plugin and use it.
I can add a link in my next reply, but I need to know if anyone is willing
to help me. The plugin works just fine, but if I need to make it repeat the
request the buffer just goes crazy.
Here is the code that might interest you for a start (just ignore the
g_print() ):
static GstFlowReturn
gst_curlsrc_create (GstPushSrc * psrc, GstBuffer ** outbuf)
{
GstCUrlSrc *src;
src = GST_CURLSRC (psrc);
g_print("curl_create_start\n");
if (src->buf_total)
{
if (!src->repeatread)
{
return GST_FLOW_UNEXPECTED;
}
//*
else
{
src->buf_size = 0;
return GST_FLOW_OK;
}//*/
}
src->outbuf = outbuf;
if (src->curl)
{
curl_easy_perform(src->curl);
}
else
return GST_FLOW_ERROR;
if (src->repeatread) gst_buffer_ref(src->outbuf[0]);
g_print("curl_create_end\n");
return GST_FLOW_OK;
}
--
-----------------------------------------------------------------
Cristian - Dragos, Cirjan
-----------------------------------------------------------------
Email: dragos.cirjan at yahoo.com
Email: dragos.cirjan at itmediaconnect.ro, doru at bocancul-literar.ro
Telefon: +40726355762
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080924/7edc748a/attachment.htm>
More information about the gstreamer-devel
mailing list