diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/writer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |