# HG changeset patch # User renatofilho # Date 1181755122 -3600 # Node ID fb471f7af20b66df7120c6743a6acb35bfeaa9bd # Parent bf9dac4bdc5d978ff6a0031f47f8bf33ae7eb96b [svn r755] fixed file output permission diff -r bf9dac4bdc5d -r fb471f7af20b gmyth-stream/gmemcoder/src/gmencoder.c --- a/gmyth-stream/gmemcoder/src/gmencoder.c Tue Jun 12 22:13:46 2007 +0100 +++ b/gmyth-stream/gmemcoder/src/gmencoder.c Wed Jun 13 18:18:42 2007 +0100 @@ -626,9 +626,9 @@ if (priv->pipe != NULL) { //TODO: fixe pipeline dispose - g_debug ("SETING STATE TO NULL"); //gst_element_set_state (priv->pipe, GST_STATE_NULL); - g_debug ("SETING STATE TO NULL: OK"); + //g_debug ("SETING STATE TO NULL: OK"); + //gst_element_set_state (priv->pipe, GST_STATE_NULL); //gst_object_unref (priv->pipe); gst_object_unref (priv->src); priv->src = NULL; @@ -884,7 +884,8 @@ if (strcmp (i[0], "fd") == 0) { priv->fd = atoi (i[1]); } else if (strcmp (i[0], "file") == 0) { - priv->fd = open (i[1], O_WRONLY | O_CREAT | O_TRUNC); + priv->fd = open (i[1], O_WRONLY | O_CREAT | O_TRUNC, + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); } else { g_warning ("Output uri not supported"); }