whats the problem here????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


hi,

v4l2src/v4lsrc are derived from GstPushSrc - they are live soruces. That is they
do gst_pad_push to send buffers. Imho you can't run the in pull mode.

Stefan

Raghavendra schrieb:
> Hi all,
> 
> Please tell me what wrong in this ?????.??? In this gst_pad_pull_range
> function is getting stuck ??..
> 
> Help me ???..
> 
>  
> 
> Gst_get_buffer ()
> 
> {
> 
>  
> 
>             Pstpipeline = gst_pipeline_new (?captuer?);
> 
>            
> 
>             Pstsrc = Gst_element_factory_make (?v4lsrc?, );
> 
>            
> 
> Pstsink = Gst_element_factory_make (?fakesink?, );
> 
>  
> 
>             Pstpad = gst_element_get_pad ( pstsink, ?sink?);
> 
>             Gst_pad_activate_pull ( pstpad, TRUE );
> 
>            
> 
>             Gst_bin_add_many (GST_BIN(pstpipeline), pstsrc, pstsink, NULL);
> 
>  
> 
>             Gst_element_link_many ( pstsrc, pstsink, NULL);
> 
>  
> 
>             Pst_element_set_state ( pstpipeline, GST_STATE_PLAYING);
> 
>  
> 
>             Gst_pad_pull_range ( pstpad, 0, 4086, &pstbuffer );
> 
>            
> 
>  
> 
>             Return 1;
> 
> }
> 
>  
> 
>  
> 
> Thank you,
> 
> Ragh ????..
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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-embedded mailing list
> Gstreamer-embedded at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded





[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux