Detect damaged file

Mikl michael.yarochkin at timetronics.be
Tue Nov 8 08:46:28 UTC 2016


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.


More information about the gstreamer-devel mailing list