[svn r832] fixed output handle bug trunk
authormelunko
Thu Aug 23 22:45:15 2007 +0100 (2007-08-23)
branchtrunk
changeset 826e0152712fd4f
parent 825 32ec09590cf2
child 827 30368d31696e
[svn r832] fixed output handle bug
gmyth-stream/gmemcoder/src/gmencoder.c
     1.1 --- a/gmyth-stream/gmemcoder/src/gmencoder.c	Thu Aug 23 22:30:57 2007 +0100
     1.2 +++ b/gmyth-stream/gmemcoder/src/gmencoder.c	Thu Aug 23 22:45:15 2007 +0100
     1.3 @@ -526,7 +526,7 @@
     1.4      }
     1.5  
     1.6      _close_output(self);
     1.7 -    if (_open_output(self, out_uri) == FALSE) {
     1.8 +    if (_open_output(self, out_uri) == FALSE) {	
     1.9          return FALSE;
    1.10      }
    1.11  
    1.12 @@ -882,7 +882,6 @@
    1.13          src = _create_v4l_source (self, uri);
    1.14      }
    1.15      else {
    1.16 -        g_debug ("SRC");
    1.17          src = gst_element_make_from_uri(GST_URI_SRC, uri, "src");
    1.18      }
    1.19  
    1.20 @@ -957,7 +956,7 @@
    1.21          result = gnome_vfs_open_fd (&priv->handle, atoi(i[1]));
    1.22      } else {
    1.23          if (g_file_test (i[1], G_FILE_TEST_EXISTS) == FALSE) {
    1.24 -            result = gnome_vfs_create (&priv->handle, uri, GNOME_VFS_OPEN_WRITE, TRUE,
    1.25 +            result = gnome_vfs_create (&priv->handle, uri, GNOME_VFS_OPEN_WRITE, FALSE,
    1.26                                GNOME_VFS_PERM_USER_WRITE | GNOME_VFS_PERM_USER_READ | GNOME_VFS_PERM_GROUP_READ);
    1.27          } else {
    1.28              result = gnome_vfs_open (&priv->handle, uri,