<div dir="ltr"><div><div>Hi.<br><br></div>Was facing the same problem with my server software. Now I'm just using ffprobe/ffmpeg prior to gstreamer. <br><br></div>Cheers!<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-08 11:46 GMT+03:00 Mikl <span dir="ltr"><<a href="mailto:michael.yarochkin@timetronics.be" target="_blank">michael.yarochkin@timetronics.be</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was trying to make timeout using GstClock, but no luck<br>
<br>
GstClock* clock = gst_pipeline_get_pipeline_<wbr>clock((GstPipeline*)_pipeline)<wbr>;<br>
GstClockTime time = 10000000000; //10 sec<br>
GstClockID timeoutClock = gst_clock_new_single_shot_id(<wbr>clock, time);<br>
<br>
GstClockReturn t = gst_clock_id_wait_async(<wbr>timeoutClock, LoopTimeout, this,<br>
nullptr);<br>
<br>
//wait for normal prerool and stop timer<br>
gst_clock_id_unschedule(<wbr>timeoutClock);<br>
<br>
<br>
and my timeout function is<br>
gboolean LoopTimeout (GstClock *clock, GstClockTime, GstClockID id, gpointer<br>
user_data)<br>
{<br>
g_main_loop_quit(_loop);<br>
<br>
//inform about timeout<br>
}<br>
<br>
}<br>
<br>
//<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Detect-damaged-file-tp4680534p4680535.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Detect-damaged-<wbr>file-tp4680534p4680535.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></div></blockquote></div><br></div>