GNOME Bugzilla – Bug 512589
Port publish plugin to gio
Last modified: 2008-03-25 15:25:51 UTC
./publish/totem-publish.c: if (GNOME_VFS_OK != gnome_vfs_read (handle, buffer, size, &size)) { ./publish/totem-publish.c: gnome_vfs_close (handle); ./publish/totem-publish.c: if (GNOME_VFS_OK == gnome_vfs_open (&handle, url, GNOME_VFS_OPEN_READ))
Created attachment 107387 [details] [review] Port Publish plugin to GIO
Please don't reassign bugs to yourself, makes them disappear from the automatic mails. Patch looks alright, although the ABS() usage looks very weird to me.
2008-03-16 Philip Withnall <pwithnall@svn.gnome.org> * src/plugins/publish/totem-publish.c: (totem_publish_plugin_stream_cb), (totem_publish_plugin_media_cb): Convert the Publish plugin to GIO. (Closes: #512589)
Thanks alot for the patch, but for me it seems that you unref the GInputStream too early in totem_publish_plugin_media_cb(). Suggesting the attached patch.
Created attachment 107910 [details] [review] Properly unref the input stream.
2008-03-25 Philip Withnall <pwithnall@svn.gnome.org> * src/plugins/publish/totem-publish.c: (totem_publish_plugin_media_cb): Patch from Mathias Hasselmann <mathias.hasselmann@gmx.de> to properly unref the input stream in the publish plugin. (Closes: #512589)