<div class="gmail_quote"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Hi all, <br>
<br>I&#39;m new to gstreamer so please bear with me if my issue seems trivial. <br><br>I&#39;m developing an application to implement Adaptive Streaming. For this, I have the souphttpsrc element that&#39;s linked to my adaptivestreaming element. The adaptivestreaming element needs to send out URIs to the souphttpsrc element and download chunks of data from the network, which it then passes along to the demux/decoders. Each chunk has it&#39;s own URI. The problem I&#39;m facing is : how do i design it such that my adaptivestreaming element will control the flow of data from souphttpsrc ? Basically run my adaptivestreaming element in pull mode (I&#39;m not really interested in random accesses, I need to download all the data that&#39;s accessible by the URI); I did implement the activate_function and activatepull_function, but it didn&#39;t work. I could not enter my looping function associated with the sinkpad of my adaptivestreaming element. <br>
In my activate function :</span></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">static gboolean gst_adaptive_streaming_activate (GstPad *pad) {</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">    if(gst_pad_check_pull_range(pad)) {</span></p><p class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">        return gst_pad_activate_pull(pad, TRUE);</span></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">    }</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">    else {</span></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">        g_print(&quot;Cannot activate task ...\n&quot;);</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">        return FALSE;</span></p><p class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">    }</span></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">}</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">gst_pad_check_pull_range() returned FALSE ;  But souphttplivesrc does support getrangefunc(); Any idea what’s happening here ?</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><br>Thanks </span></p></div></div></div><br>