diff options
author | Christian Pointner <equinox@helsinki.at> | 2011-04-21 23:45:41 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2011-04-21 23:45:41 (GMT) |
commit | 9657100a19eb9bf0674c5abaabac7854fba5b497 (patch) | |
tree | c08f8f0abba8689f23ce4970b511d626f1df917f /src | |
parent | ebc87c0d01c30dce1a76cde4e28d235718574d8e (diff) |
setting recovery policy (fix the enum value)
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); |