summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-04-21 23:45:41 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-04-21 23:45:41 (GMT)
commit9657100a19eb9bf0674c5abaabac7854fba5b497 (patch)
treec08f8f0abba8689f23ce4970b511d626f1df917f
parentebc87c0d01c30dce1a76cde4e28d235718574d8e (diff)
setting recovery policy (fix the enum value)
-rw-r--r--src/writer.c2
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);