[Gstreamer-bugs] [Bug 104840] Changed - gnomevfssrc seekable property

bugzilla-daemon at widget.gnome.org bugzilla-daemon at widget.gnome.org
Mon Apr 28 01:33:56 PDT 2003


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=104840

Changed by alexl at redhat.com.

--- shadow/104840	Sat Apr 26 10:28:43 2003
+++ shadow/104840.tmp.30090	Mon Apr 28 04:33:56 2003
@@ -10,12 +10,13 @@
 Component: gst-plugins
 AssignedTo: walters at verbum.org                            
 ReportedBy: jorn at nl.linux.org               
 QAContact: gstreamer-maint at bugzilla.gnome.org
 TargetMilestone: 0.7.x
 URL: 
+Cc: alexl at redhat.com
 Summary: gnomevfssrc seekable property
 
 It would be great if the gnomevfssrc plugin could have some way of
 discovering whether the currently opened stream is seekable.
 
 ------- Additional Comments From wim.taymans at chello.be  2003-04-04 14:41 -------
@@ -39,6 +40,20 @@
 posix API we could use to implement this?
 
 ------- Additional Comments From wim.taymans at chello.be  2003-04-26 10:28 -------
 lseek returns -1 when an error occured, you can check errno to find
 out that it was a pipe/socket or fifo (ESPIPE) you were seeking on; I
 would suggest to return _NOT_SUPPORTED in that case.
+
+------- Additional Comments From alexl at redhat.com  2003-04-28 04:33 -------
+Let me quote the code (which has been this way since a long time):
+
+	if (LSEEK (file_handle->fd, offset, lseek_whence) == -1) {
+		if (errno == ESPIPE)
+			return GNOME_VFS_ERROR_NOT_SUPPORTED;
+		else
+			return gnome_vfs_result_from_errno ();
+	}
+
+	return GNOME_VFS_OK;
+
+Is this not working?





More information about the Gstreamer-bugs mailing list