<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello,</p>
<p><br>
</p>
<p>Sounds like a initialization problem.</p>
<p>Did you recreating ALL the object your using?</p>
<p><br>
</p>
<p>And there is no need to do init every time.</p>
<p><br>
</p>
<p>Mikl</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of aydogmusmt <abdulaziz.aydogmus@mikro-tasarim.com.tr><br>
<b>Sent:</b> Wednesday, November 9, 2016 2:17:19 PM<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> gst_rtsp_server does not stop</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I am trying to make a tiny cpp program module that makes live stream from<br>
camera, I am using gstreamer1.0 and I have plugins 1.6 and<br>
gst-rtsp-server-1.6.0 . I am able to start stream but when I try to stop and<br>
start again it does not start again. my pipeline is:<br>
<br>
std_pipeline = "videotestsrc ! video/x-raw ! "<br>
"videoconvert ! x264enc ! rtph264pay name=pay0"<br>
<br>
and I am initializing with functions below:<br>
<br>
gst_rtsp_server_new();<br>
gst_rtsp_server_get_mount_points(server);<br>
gst_rtsp_media_factory_new();<br>
gst_rtsp_media_factory_set_launch(factory, std_pipeline);<br>
gst_rtsp_mount_points_add_factory(mounts, "/stream", factory);<br>
gst_rtsp_server_attach(server, NULL);<br>
<br>
to start stream I call in another thread:<br>
<br>
g_main_loop_run(loop);<br>
<br>
and I am try to destroy everything with:<br>
<br>
GstRTSPSessionPool *pool<br>
gst_rtsp_server_get_session_pool (server);<br>
gst_rtsp_session_pool_filter (pool,<br>
(GstRTSPSessionPoolFilterFunc) remove_func, server);<br>
g_object_unref (pool);<br>
g_source_remove(server_id);<br>
mounts = gst_rtsp_server_get_mount_points(server);<br>
gst_rtsp_mount_points_remove_factory(mounts, "/stream");<br>
gst_object_unref(mounts);<br>
g_main_loop_quit(loop);<br>
<br>
and the stream stops but when I try to init and start stream again it does<br>
not start.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/gst-rtsp-server-does-not-stop-tp4680579.html">
http://gstreamer-devel.966125.n4.nabble.com/gst-rtsp-server-does-not-stop-tp4680579.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div>
</span></font>
</body>
</html>