<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi<div><br></div><div>Try sending periodic I frames, "x264enc key-int-max=10" or, programmatically:</div><div><br></div><div><blockquote type="cite"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> </span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_object_set</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">( </span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lEncoder</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">, </span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"key-int-max"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">, 1</span><span style="font-size: 10.5pt; font-family: Consolas; caret-color: rgb(181, 206, 168);"><font color="#b5cea8">0</font></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">, </span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> );</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(106, 153, 85);"> // 4 = zerolatency</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div></div></blockquote><div><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(106, 153, 85);"><br></span></div></div></div><div><br></div><div>10 is just a made up number to send a reference frame every second (given that your framerate is 10/1). You may space them according to your needs.</div><div><br></div><div>Michael.</div><div><br><blockquote type="cite"><div>On 21 Sep 2023, at 09:59, LEVY David via gstreamer-devel <gstreamer-devel@lists.freedesktop.org> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Hello,<br>i'm new to gstreamer / rtsp so, sorry if it's a basic mistake.<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">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></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">It would be:<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">videotestsrc -> x264enc -> appsink (push data to src as soon as received)<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">and<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">appsrc -> rtph264pay<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">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" style="color: rgb(5, 99, 193); text-decoration: underline;">https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-appsrc.c</a><o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Which does:<br>appsrc-> videoconvert -> x264enc -> rtph264pay (and uses “need-data”)<span class="Apple-converted-space"> </span><o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">I have successfully tweaked it to<br>videotestsrc -> appsink<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">appsrc-> videoconvert -> x264enc -> rtph264pay (and uses “need-data”)<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">My next step would be<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Videotestsrc -> x264enc -> appsink<span class="Apple-converted-space"> </span><o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">appsrc-> rtph264pay (and uses “need-data”)<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">but when I try to read the stream from either<span class="Apple-converted-space"> </span><o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"> gst-launch-1.0 --gst-debug=rtspsrc:2 rtspsrc location=<a href="rtsp://127.0.0.1:8554/test" style="color: rgb(5, 99, 193); text-decoration: underline;">rtsp://127.0.0.1:8554/test</a><span class="Apple-converted-space"> </span>! queue ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! videoscale ! autovideosink<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">or ffplay<span class="Apple-converted-space"> </span><a href="rtsp://127.0.0.1:8554/test" style="color: rgb(5, 99, 193); text-decoration: underline;">rtsp://127.0.0.1:8554/test</a><o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">I don’t have any playback:<br><br>Setting pipeline to PAUSED ...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Pipeline is live and does not need PREROLL ...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (open) Opening Stream<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Pipeline is PREROLLED ...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Prerolled, waiting for progress to finish...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (connect) Connecting to<span class="Apple-converted-space"> </span><a href="rtsp://127.0.0.1:8554/test" style="color: rgb(5, 99, 193); text-decoration: underline;">rtsp://127.0.0.1:8554/test</a><o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (open) Retrieving server options<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (open) Retrieving media info<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (request) SETUP stream 0<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (open) Opened Stream<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Setting pipeline to PLAYING ...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">New clock: GstSystemClock<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (request) Sending PLAY request<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Redistribute latency...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (request) Sending PLAY request<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Redistribute latency...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Progress: (request) Sent PLAY request<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Redistribute latency...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Redistribute latency...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">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></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Additional debug info:<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">../gst/rtsp/gstrtspsrc.c(5964): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">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></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Redistribute latency...<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">And it is stuck here<br><br>I’m using the code below:<br><br><br><o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">#include</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);"><gst/gst.h></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">#include</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);"><gst/app/gstappsink.h></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">#include</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);"><gst/app/gstappsrc.h></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">#include</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);"><gst/rtsp-server/rtsp-server.h></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstElement</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">gSink</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">nullptr</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">static</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">void</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">InitPipeline</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">()<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">{<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstElement</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lPipeline</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_pipeline_new</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"x264-pipeline"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstElement</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSource</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span> </span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_element_factory_make</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"videotestsrc"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"source"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstElement</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lEncoder</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_element_factory_make</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"x264enc"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"x264-encoder"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstElement</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSink</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span> </span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_element_factory_make</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"appsink"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"appsink"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_bin_add_many</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">GST_BIN</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lPipeline</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>),<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSource</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lEncoder</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSink</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(106, 153, 85);"> // gst_bin_add_many( GST_BIN( lPipeline ), lSource, lSink, NULL );</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_object_set</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lEncoder</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"tune"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(181, 206, 168);">4</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(106, 153, 85);"><span class="Apple-converted-space"> </span>// 4 = zerolatency</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstCaps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lCaps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_caps_new_simple</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"video/x-raw"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"width"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">G_TYPE_INT</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(181, 206, 168);">384</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"height"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">G_TYPE_INT</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(181, 206, 168);">288</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"framerate"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">GST_TYPE_FRACTION</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(181, 206, 168);">10</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(181, 206, 168);">1</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">if</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">!</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_element_link_filtered</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSource</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lEncoder</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lCaps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>) )<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(106, 153, 85);"> // if( !gst_element_link_filtered( lSource, lSink, lCaps ) )</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> {<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_caps_unref</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lCaps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">throw</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> }<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_caps_unref</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lCaps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_element_link</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lEncoder</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSink</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstStateChangeReturn</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">ret</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_element_set_state</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lPipeline</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(79, 193, 255);">GST_STATE_PLAYING</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">if</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">ret</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">==</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(79, 193, 255);">GST_STATE_CHANGE_FAILURE</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>)<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> {<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">throw</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> }<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">gSink</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSink</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">}<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">static</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">void</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">need_data</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstElement</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">appsrc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">guint</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">unused</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">void</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">aUnused</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>)<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">{<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstSample</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSample</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_app_sink_pull_sample</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">GST_APP_SINK_CAST</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">gSink</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>) );<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstFlowReturn</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lRet</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_app_src_push_sample</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">GST_APP_SRC</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">appsrc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>),<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSample</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_sample_unref</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">lSample</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">return</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">}<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">static</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">void</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">media_configure</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstRTSPMediaFactory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">factory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstRTSPMedia</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">media</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">gpointer</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">user_data</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>)<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">{<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstElement</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">element</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">appsrc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">element</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_rtsp_media_get_element</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">media</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">appsrc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_bin_get_by_name_recurse_up</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">GST_BIN</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">element</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>),<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"mysrc"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_util_set_object_arg</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">G_OBJECT</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">appsrc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>),<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"format"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"time"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">if</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstPad</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">pad</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_element_get_static_pad</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">gSink</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"sink"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>) )<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> {<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_print</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"Got pad</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(215, 186, 125);">\n</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstCaps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">caps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_pad_get_current_caps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">pad</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">if</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">caps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>)<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> {<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">auto</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">caps_str</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_caps_to_string</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">caps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_print</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"Got caps<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">%s</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(215, 186, 125);">\n</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">caps_str</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_object_set</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">G_OBJECT</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">appsrc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>),<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"caps"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">caps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_caps_unref</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">caps</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> }<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> }<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">g_signal_connect</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">appsrc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"need-data"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">, (</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GCallback</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">)</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">need_data</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_object_unref</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">appsrc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_object_unref</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">element</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">}<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">int</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">main</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">int</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">argc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">char</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">argv</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">[] )<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">{<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GMainLoop</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">loop</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstRTSPServer</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">server</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstRTSPMountPoints</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">mounts</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GstRTSPMediaFactory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">*</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">factory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_init</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">&</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">argc</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">&</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">argv</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">loop</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_main_loop_new</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">FALSE</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">InitPipeline</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">();<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">server</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_rtsp_server_new</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">();<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">mounts</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_rtsp_server_get_mount_points</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">server</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">factory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(212, 212, 212);">=</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_rtsp_media_factory_new</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">();<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(106, 153, 85);"> // 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: rgb(204, 204, 204);"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_rtsp_media_factory_set_launch</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">factory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"( appsrc name=mysrc ! rtph264pay name=pay0 pt=96 )"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">g_signal_connect</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">factory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"media-configure"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">, (</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(78, 201, 176);">GCallback</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">)</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">media_configure</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_rtsp_mount_points_add_factory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">mounts</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"/test"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">factory</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_object_unref</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">mounts</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">gst_rtsp_server_attach</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">server</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">,<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(86, 156, 214);">NULL</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_print</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"stream ready at<span class="Apple-converted-space"> </span><a href="rtsp://127.0.0.1:8554/test\n" style="color: rgb(5, 99, 193); text-decoration: underline;">rtsp://127.0.0.1:8554/test</a></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(215, 186, 125);"><a href="rtsp://127.0.0.1:8554/test\n" style="color: rgb(5, 99, 193); text-decoration: underline;">\n</a></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(206, 145, 120);">"</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(220, 220, 170);">g_main_loop_run</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">(<span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(156, 220, 254);">loop</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span>);<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"> <span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(197, 134, 192);">return</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);"><span class="Apple-converted-space"> </span></span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(181, 206, 168);">0</span><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">;<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 14.25pt; background: rgb(31, 31, 31);"><span style="font-size: 10.5pt; font-family: Consolas; color: rgb(204, 204, 204);">}<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Is it a good idea to convert before the appsink?<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks for your time</div></div></div></blockquote></div><br></div></body></html>