From 9657100a19eb9bf0674c5abaabac7854fba5b497 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 21 Apr 2011 23:45:41 +0000 Subject: setting recovery policy (fix the enum value) diff --git a/src/writer.c b/src/writer.c index 98c3456..c8b18fc 100644 --- a/src/writer.c +++ b/src/writer.c @@ -106,6 +106,8 @@ int writer_init(writer_t* writer, GMainLoop *loop, const char* name_format, mode log_printf(ERROR, "the writer object could not be created. Exiting."); return -1; } + // TODO: how the heck should we get the right value? 3 means keyframe... + g_object_set(G_OBJECT(writer->sink_), "recover-policy", 3, NULL); g_signal_connect(G_OBJECT(writer->sink_), "client-added", G_CALLBACK(added_cb), writer); g_signal_connect(G_OBJECT(writer->sink_), "client-removed", G_CALLBACK(removed_cb), writer); g_signal_connect(G_OBJECT(writer->sink_), "client-fd-removed", G_CALLBACK(fdremoved_cb), writer); -- cgit v0.10.2