<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<br>
i'm new to gstreamer / rtsp so, sorry if it's a basic mistake.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Im trying to set up a pipeline that end with an appsink that push data into a rtsp server starting with an appsrc.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It would be:<o:p></o:p></p>
<p class="MsoNormal">videotestsrc -> x264enc -> appsink (push data to src as soon as received)<o:p></o:p></p>
<p class="MsoNormal">and<o:p></o:p></p>
<p class="MsoNormal">appsrc -> rtph264pay<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can’t find any example similar, but I found this one:<br>
<a href="https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-appsrc.c">https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-appsrc.c</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Which does:<br>
appsrc-> videoconvert -> x264enc -> rtph264pay (and uses “need-data”) <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have successfully tweaked it to<br>
videotestsrc -> appsink<o:p></o:p></p>
<p class="MsoNormal">appsrc-> videoconvert -> x264enc -> rtph264pay (and uses “need-data”)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My next step would be<o:p></o:p></p>
<p class="MsoNormal">Videotestsrc -> x264enc -> appsink <o:p></o:p></p>
<p class="MsoNormal">appsrc-> rtph264pay (and uses “need-data”)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">but when I try to read the stream from either <o:p></o:p></p>
<p class="MsoNormal"> gst-launch-1.0 --gst-debug=rtspsrc:2 rtspsrc location=rtsp://127.0.0.1:8554/test ! queue ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! videoscale ! autovideosink<o:p></o:p></p>
<p class="MsoNormal">or ffplay rtsp://127.0.0.1:8554/test<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I don’t have any playback:<br>
<br>
Setting pipeline to PAUSED ...<o:p></o:p></p>
<p class="MsoNormal">Pipeline is live and does not need PREROLL ...<o:p></o:p></p>
<p class="MsoNormal">Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";<o:p></o:p></p>
<p class="MsoNormal">Progress: (open) Opening Stream<o:p></o:p></p>
<p class="MsoNormal">Pipeline is PREROLLED ...<o:p></o:p></p>
<p class="MsoNormal">Prerolled, waiting for progress to finish...<o:p></o:p></p>
<p class="MsoNormal">Progress: (connect) Connecting to rtsp://127.0.0.1:8554/test<o:p></o:p></p>
<p class="MsoNormal">Progress: (open) Retrieving server options<o:p></o:p></p>
<p class="MsoNormal">Progress: (open) Retrieving media info<o:p></o:p></p>
<p class="MsoNormal">Progress: (request) SETUP stream 0<o:p></o:p></p>
<p class="MsoNormal">Progress: (open) Opened Stream<o:p></o:p></p>
<p class="MsoNormal">Setting pipeline to PLAYING ...<o:p></o:p></p>
<p class="MsoNormal">New clock: GstSystemClock<o:p></o:p></p>
<p class="MsoNormal">Progress: (request) Sending PLAY request<o:p></o:p></p>
<p class="MsoNormal">Redistribute latency...<o:p></o:p></p>
<p class="MsoNormal">Progress: (request) Sending PLAY request<o:p></o:p></p>
<p class="MsoNormal">Redistribute latency...<o:p></o:p></p>
<p class="MsoNormal">Progress: (request) Sent PLAY request<o:p></o:p></p>
<p class="MsoNormal">Redistribute latency...<o:p></o:p></p>
<p class="MsoNormal">Redistribute latency...<o:p></o:p></p>
<p class="MsoNormal">0:00:05.945770874 15996 0x55c83ec97f60 WARN rtspsrc gstrtspsrc.c:5964:gst_rtspsrc_reconnect:<rtspsrc0> warning: Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp
connection.<o:p></o:p></p>
<p class="MsoNormal">WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.<o:p></o:p></p>
<p class="MsoNormal">Additional debug info:<o:p></o:p></p>
<p class="MsoNormal">../gst/rtsp/gstrtspsrc.c(5964): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:<o:p></o:p></p>
<p class="MsoNormal">Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection.<o:p></o:p></p>
<p class="MsoNormal">Redistribute latency...<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And it is stuck here<br>
<br>
I’m using the code below:<br>
<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">#include</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA"><gst/gst.h></span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">#include</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA"><gst/app/gstappsink.h></span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">#include</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA"><gst/app/gstappsrc.h></span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">#include</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA"><gst/rtsp-server/rtsp-server.h></span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstElement</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">gSink</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">nullptr</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">static</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">void</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">InitPipeline</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">()<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">{<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstElement</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lPipeline</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_pipeline_new</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"x264-pipeline"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstElement</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSource</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_element_factory_make</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"videotestsrc"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"source"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstElement</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lEncoder</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_element_factory_make</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"x264enc"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"x264-encoder"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstElement</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSink</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_element_factory_make</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"appsink"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"appsink"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_bin_add_many</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">GST_BIN</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lPipeline</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> ),
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSource</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lEncoder</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSink</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">NULL</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#6A9955;mso-ligatures:none;mso-fareast-language:EN-CA"> // gst_bin_add_many( GST_BIN( lPipeline ), lSource, lSink, NULL );
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">g_object_set</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lEncoder</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"tune"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8;mso-ligatures:none;mso-fareast-language:EN-CA">4</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">NULL</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );</span><span style="font-size:10.5pt;font-family:Consolas;color:#6A9955;mso-ligatures:none;mso-fareast-language:EN-CA">
// 4 = zerolatency</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstCaps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lCaps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_caps_new_simple</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"video/x-raw"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"width"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">G_TYPE_INT</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8;mso-ligatures:none;mso-fareast-language:EN-CA">384</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"height"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">G_TYPE_INT</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8;mso-ligatures:none;mso-fareast-language:EN-CA">288</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"framerate"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">GST_TYPE_FRACTION</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8;mso-ligatures:none;mso-fareast-language:EN-CA">10</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8;mso-ligatures:none;mso-fareast-language:EN-CA">1</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">NULL</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">if</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">!</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_element_link_filtered</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSource</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lEncoder</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lCaps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> ) )<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#6A9955;mso-ligatures:none;mso-fareast-language:EN-CA"> // if( !gst_element_link_filtered( lSource, lSink, lCaps ) )</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_caps_unref</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lCaps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">throw</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_caps_unref</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lCaps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_element_link</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lEncoder</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSink</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstStateChangeReturn</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">ret</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_element_set_state</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lPipeline</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4FC1FF;mso-ligatures:none;mso-fareast-language:EN-CA">GST_STATE_PLAYING</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">if</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">ret</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">==</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4FC1FF;mso-ligatures:none;mso-fareast-language:EN-CA">GST_STATE_CHANGE_FAILURE</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">throw</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">gSink</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSink</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">static</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">void</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">need_data</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstElement</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">appsrc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">guint</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">unused</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">void</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">aUnused</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">{<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstSample</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSample</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_app_sink_pull_sample</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">GST_APP_SINK_CAST</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">gSink</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> ) );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstFlowReturn</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lRet</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_app_src_push_sample</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">GST_APP_SRC</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">appsrc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> ),
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSample</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_sample_unref</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">lSample</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">return</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">static</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">void</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">media_configure</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstRTSPMediaFactory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">factory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstRTSPMedia</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">media</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">gpointer</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">user_data</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> )<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">{<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstElement</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">element</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">appsrc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">element</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_rtsp_media_get_element</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">media</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">appsrc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_bin_get_by_name_recurse_up</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">GST_BIN</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">element</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> ),
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"mysrc"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_util_set_object_arg</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">G_OBJECT</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">appsrc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> ),
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"format"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"time"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">if</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstPad</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">pad</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_element_get_static_pad</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">gSink</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"sink"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> ) )<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">g_print</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"Got pad</span><span style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D;mso-ligatures:none;mso-fareast-language:EN-CA">\n</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
);<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstCaps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">caps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_pad_get_current_caps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">pad</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">if</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">caps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> )<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">auto</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">caps_str</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_caps_to_string</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">caps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">g_print</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"Got caps
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">%s</span><span style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D;mso-ligatures:none;mso-fareast-language:EN-CA">\n</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">caps_str</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">g_object_set</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">G_OBJECT</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">appsrc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> ),
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"caps"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">caps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">NULL</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_caps_unref</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">caps</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">g_signal_connect</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">appsrc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"need-data"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">, (</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GCallback</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">)</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">need_data</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">NULL</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_object_unref</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">appsrc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_object_unref</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">element</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">int</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">main</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">int</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">argc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">char</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">argv</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">[]
)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">{<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GMainLoop</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">loop</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstRTSPServer</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">server</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstRTSPMountPoints</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">mounts</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GstRTSPMediaFactory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">*</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">factory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_init</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">&</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">argc</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">&</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">argv</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
);<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">loop</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">g_main_loop_new</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">NULL</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">FALSE</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">InitPipeline</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">();<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">server</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_rtsp_server_new</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">();<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">mounts</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_rtsp_server_get_mount_points</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">server</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">factory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4;mso-ligatures:none;mso-fareast-language:EN-CA">=</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_rtsp_media_factory_new</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">();<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#6A9955;mso-ligatures:none;mso-fareast-language:EN-CA"> // gst_rtsp_media_factory_set_launch( factory, "( appsrc name=mysrc ! videoconvert
! x264enc ! rtph264pay name=pay0 pt=96 )" );</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_rtsp_media_factory_set_launch</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">factory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"( appsrc name=mysrc ! rtph264pay name=pay0 pt=96 )"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
);<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">g_signal_connect</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">factory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"media-configure"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
(</span><span style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0;mso-ligatures:none;mso-fareast-language:EN-CA">GCallback</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">)</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">media_configure</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">NULL</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_rtsp_mount_points_add_factory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">mounts</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"/test"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">factory</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">g_object_unref</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">mounts</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">gst_rtsp_server_attach</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">server</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">,
</span><span style="font-size:10.5pt;font-family:Consolas;color:#569CD6;mso-ligatures:none;mso-fareast-language:EN-CA">NULL</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">g_print</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"stream ready at rtsp://127.0.0.1:8554/test</span><span style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D;mso-ligatures:none;mso-fareast-language:EN-CA">\n</span><span style="font-size:10.5pt;font-family:Consolas;color:#CE9178;mso-ligatures:none;mso-fareast-language:EN-CA">"</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
);<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA;mso-ligatures:none;mso-fareast-language:EN-CA">g_main_loop_run</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">(
</span><span style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE;mso-ligatures:none;mso-fareast-language:EN-CA">loop</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"> );<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#C586C0;mso-ligatures:none;mso-fareast-language:EN-CA">return</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">
</span><span style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8;mso-ligatures:none;mso-fareast-language:EN-CA">0</span><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:#1F1F1F"><span style="font-size:10.5pt;font-family:Consolas;color:#CCCCCC;mso-ligatures:none;mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is it a good idea to convert before the appsink?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for your time<o:p></o:p></p>
</div>
</body>
</html>