need help for debugging a plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

need help for debugging a plugin

Dragos Cirjan

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: [hidden email]
Email: [hidden email], [hidden email]
Telefon: +40726355762

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel