Detect damaged file

Krutskikh Ivan stein.hak at gmail.com
Tue Nov 8 12:35:02 UTC 2016


Hi.

Was facing the same problem with my server software. Now I'm just using
ffprobe/ffmpeg prior to gstreamer.

Cheers!

2016-11-08 11:46 GMT+03:00 Mikl <michael.yarochkin at timetronics.be>:

> I was trying to make timeout using GstClock, but no luck
>
>         GstClock* clock = gst_pipeline_get_pipeline_
> clock((GstPipeline*)_pipeline);
>         GstClockTime time = 10000000000; //10 sec
>         GstClockID timeoutClock = gst_clock_new_single_shot_id(clock,
> time);
>
>         GstClockReturn t = gst_clock_id_wait_async(timeoutClock,
> LoopTimeout, this,
> nullptr);
>
> //wait for normal prerool and stop timer
>         gst_clock_id_unschedule(timeoutClock);
>
>
> and my timeout function is
> gboolean LoopTimeout (GstClock *clock, GstClockTime, GstClockID id,
> gpointer
> user_data)
> {
>         g_main_loop_quit(_loop);
>
>         //inform about timeout
> }
>
> }
>
> //
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.
> n4.nabble.com/Detect-damaged-file-tp4680534p4680535.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161108/f4d42cb2/attachment.html>


More information about the gstreamer-devel mailing list