<div dir='ltr'>I build a pipeline for display a rtsp streaming and I am using x_overlay to embed the video in a GTK+ window. But the code is crashing in some situations, I thing I am doing something that is not threat safe but I haven't been able to locate the error.<div>I am attaching the source code in a tar file with a small example, the code crashes when using std::cin.</div><div><br></div><div>I hope some one can help me to solve this issue.</div><div><br></div><div>Regards</div><div>Mario<br><div><br></div><div><div>//------------------------------------------------------------------------------</div><div>int main (int argc, char *argv[])</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>gtk_init (&argc, &argv);</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>gst_init (&argc, &argv);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>rovioStreaming *mySreaming = new rovioStreaming("192.168.1.65");</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>mySreaming->connect();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>int i;</div><div>//<span class="Apple-tab-span" style="white-space:pre"> </span>cin >> i; //the code crash here</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>gtk_main ();</div><div><br></div><div> return 0;</div><div>}</div></div></div> </div>
<div class="small"><br/><img src="/images/icon_attachment.gif" > <strong>stream.tar</strong> (136K) <a href="http://gstreamer-devel.966125.n4.nabble.com/attachment/4660715/0/stream.tar" target="_top" rel="nofollow" link="external">Download Attachment</a></div>
<div class="signature" style="margin-top:1em;color:#666666;font-size:11px;">
MChC
</div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/gst-x-overlay-set-window-handle-carsh-please-advice-tp4660715.html">gst_x_overlay_set_window_handle carsh please advice</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>