hi,<br><br> Thanks Halley. Its working fine now. Actually i had missed out a property in the dvbsrc plugin, when i change a channel.<br><br><div class="gmail_quote">2009/3/9 Zhao, Halley <span dir="ltr"><<a href="mailto:halley.zhao@intel.com">halley.zhao@intel.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="blue" lang="ZH-CN">
<div>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">Refer to the following
link:</span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"><a href="http://farsight.sourcearchive.com/documentation/0.1.10-2/rtpstream_8c-source.html" target="_blank">http://farsight.sourcearchive.com/documentation/0.1.10-2/rtpstream_8c-source.html</a></span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">Some actions need to be
done in callback function.</span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div style="text-align: center;" align="center"><font face="宋体" size="3"><span style="font-size: 12pt;" lang="EN-US">
<hr align="center" size="2" width="100%">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;" lang="EN-US">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">
Sumanth V [mailto:<a href="mailto:sumanth.v@allaboutif.com" target="_blank">sumanth.v@allaboutif.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> 2009</span></font><font size="2"><span style="font-size: 10pt;">年</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">3</span></font><font size="2"><span style="font-size: 10pt;">月</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">6</span></font><font size="2"><span style="font-size: 10pt;">日</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US"> 20:40<div class="im">
<br>
<b><span style="font-weight: bold;">To:</span></b> Discussion
of the development of GStreamer<br>
</div><b><span style="font-weight: bold;">Subject:</span></b> Re: [gst-devel] channel
changing dvbsrc plugin</span></font><span lang="EN-US"></span></p>
</div><div><div></div><div class="h5">
<p><font face="宋体" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<p style="margin-bottom: 12pt;"><font face="宋体" size="3"><span style="font-size: 12pt;" lang="EN-US">hi all,<br>
<br>
Thanks halley, I tried
blocking the source pad of the mpegtsdemux but it dint work. What ia happening
is , when i set the state of <br>
the pipeline to READY , the mpegtsdemux removes its source pad which was linked
to the sink of queue. So when i check for GST_PAD_IS_LINKED on the sink pad of
the queue it return FALSE. So i directly link the sink of queue to the newly
emitted source pad of the mpegtsdemux. I checked for the result of the
gst_pad_link(srcpad, sinkpad); It is returning GST_PAD_LINK_OK.<br>
Why is the video getting freezed? <br>
<br>
regards,</span></font></p>
<div>
<p><font face="宋体" size="3"><span style="font-size: 12pt;" lang="EN-US">2009/3/6
Zhao, Halley <<a href="mailto:halley.zhao@intel.com" target="_blank">halley.zhao@intel.com</a>></span></font></p>
<div link="blue" vlink="purple">
<div>
<p><font face="宋体" size="2"><span style="font-size: 10pt;" lang="EN-US">Try to block
the upstream src pad before you link/unlink.</span></font><span lang="EN-US"></span></p>
<p><font face="宋体" size="2"><span style="font-size: 10pt;" lang="EN-US"> </span></font><span lang="EN-US"></span></p>
<p><font face="宋体" size="2"><span style="font-size: 10pt;" lang="EN-US"><a href="http://www.sfr-fresh.com/unix/privat/gstreamer-0.10.22.tar.gz:a/gstreamer-0.10.22/docs/design/part-block.txt" target="_blank">http://www.sfr-fresh.com/unix/privat/gstreamer-0.10.22.tar.gz:a/gstreamer-0.10.22/docs/design/part-block.txt</a></span></font><span lang="EN-US"></span></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font><span lang="EN-US"></span></p>
<p><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font><span lang="EN-US"></span></p>
<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt; font-family: "Times New Roman";" lang="EN-US">
<hr align="center" size="2" width="100%">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;" lang="EN-US">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">
Sumanth V [mailto:<a href="mailto:sumanth.v@allaboutif.com" target="_blank">sumanth.v@allaboutif.com</a>]
<br>
<b><span style="font-weight: bold;">Sent:</span></b> 2009</span></font><font size="2"><span style="font-size: 10pt;">年</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">3</span></font><font size="2"><span style="font-size: 10pt;">月</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">6</span></font><font size="2"><span style="font-size: 10pt;">日</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US"> 3:37<br>
<b><span style="font-weight: bold;">To:</span></b> Discussion
of the development of GStreamer<br>
<b><span style="font-weight: bold;">Subject:</span></b> [gst-devel] channel
changing dvbsrc plugin</span></font><span lang="EN-US"></span></p>
</div>
<div>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt; font-family: "Times New Roman";" lang="EN-US"> </span></font><span lang="EN-US"></span></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt; font-family: "Times New Roman";" lang="EN-US">Hi All,<br>
<br>
I am writing
a application using a dvbsrc plugin to play the incoming TV channels. How do i
change the channels with out stopping the application? Right now i am doing it
by changing the es-pid property of the mpegtsdemux plugin, i am able to to
change the channels, but as soon as i change the channel , the video is getting
freezed, its not playing. but i can change the channles. As soon as i shift to
next channel, the video is getting freezed.<br>
For the first time when i
start the application it plays which ever channel i have selected, but later
when i try to change the channels , the video is getting freezed.<br>
<br>
The method i am using to change the channel is :-<br>
* when i want to change a channel, i set the pipeline to READY state and
tune to a channel which i want to play and the set the "es-pid"
property of the<br>
mpegtsdemux plugin to the pid of the channel which i want to
play.<br>
* Set the pipeline back to PLAYING state.<br>
* When the mpegtsdemux plugin generates a new pad for the new channel , i
unlink the previous linked queue pad to the mpegtsdemux and then link to the
new pad.<br>
<br>
the pipeline is<br>
gst-launch dvbsrc diseqc-source=0 frequency=10990000 symbol-rate=27500
polarity="v" code-rate-hp=3/4 ! mpegtsdemux ! queue ! mpeg2dec !
ffmpegcolorspace ! xvimagesink<br>
<br>
Where am i going wrong here? Why is the video of the new channel
getting freezed??<br>
<br>
regards,<br>
Sumanth<br>
<br>
</span></font><span lang="EN-US"></span></p>
</div>
</div>
</div>
</div>
</div>
<p style="margin-bottom: 12pt;"><font face="宋体" size="3"><span style="font-size: 12pt;" lang="EN-US"><br>
------------------------------------------------------------------------------<br>
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA<br>
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise<br>
-Strategies to boost innovation and cut costs with open source participation<br>
-Receive a $600 discount off the registration fee with the source code: SFAD<br>
<a href="http://p.sf.net/sfu/XcvMzF8H" target="_blank">http://p.sf.net/sfu/XcvMzF8H</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a></span></font></p>
</div>
<p><font face="宋体" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
</div></div></div>
</div>
</div>
<br>------------------------------------------------------------------------------<br>
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA<br>
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise<br>
-Strategies to boost innovation and cut costs with open source participation<br>
-Receive a $600 discount off the registration fee with the source code: SFAD<br>
<a href="http://p.sf.net/sfu/XcvMzF8H" target="_blank">http://p.sf.net/sfu/XcvMzF8H</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>