1.1 --- a/gmyth-stream/gmemcoder/src/gmencoder.c Tue Jun 19 22:01:13 2007 +0100
1.2 +++ b/gmyth-stream/gmemcoder/src/gmencoder.c Fri Jun 22 16:14:21 2007 +0100
1.3 @@ -866,6 +866,9 @@
1.4 if (strcmp(i[0], "fd") == 0) {
1.5 priv->fd = atoi(i[1]);
1.6 } else if (strcmp(i[0], "file") == 0) {
1.7 + if (g_file_test (i[1], G_FILE_TEST_EXISTS)) {
1.8 + g_assert (unlink (i[1]) == 0);
1.9 + }
1.10 priv->fd = open(i[1], O_WRONLY | O_CREAT | O_TRUNC,
1.11 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
1.12 } else {