From: Wim T. <wt...@us...> - 2002-11-02 13:25:31
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: wtay Date: Sat Nov 02 2002 05:25:30 PST Log message: Removed annoying notify messages and removed properties that are better handled with query Modified files: gst/elements : gstfilesrc.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/elements/gstfilesrc.c.diff?r1=1.43&r2=1.44 ====Begin Diffs==== Index: gstfilesrc.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/elements/gstfilesrc.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- gstfilesrc.c 29 Sep 2002 17:52:31 -0000 1.43 +++ gstfilesrc.c 2 Nov 2002 13:25:18 -0000 1.44 @@ -90,9 +90,7 @@ enum { ARG_0, - ARG_OFFSET, ARG_LOCATION, - ARG_FILESIZE, ARG_FD, ARG_BLOCKSIZE, ARG_MAPSIZE, @@ -172,8 +170,6 @@ gst_element_class_install_std_props ( GST_ELEMENT_CLASS (klass), "fd", ARG_FD, G_PARAM_READABLE, - "offset", ARG_OFFSET, G_PARAM_READWRITE, - "filesize", ARG_FILESIZE, G_PARAM_READABLE, "location", ARG_LOCATION, G_PARAM_READWRITE, "blocksize", ARG_BLOCKSIZE, G_PARAM_READWRITE, "mmapsize", ARG_MAPSIZE, G_PARAM_READWRITE, @@ -277,10 +273,6 @@ src->block_size = g_value_get_ulong (value); g_object_notify (G_OBJECT (src), "blocksize"); break; - case ARG_OFFSET: - src->curoffset = g_value_get_int64 (value); - g_object_notify (G_OBJECT (src), "offset"); - break; case ARG_MAPSIZE: if ((src->mapsize % src->pagesize) == 0) { src->mapsize = g_value_get_ulong (value); @@ -312,18 +304,12 @@ case ARG_LOCATION: g_value_set_string (value, src->filename); break; - case ARG_FILESIZE: - g_value_set_int64 (value, src->filelen); - break; case ARG_FD: g_value_set_int (value, src->fd); break; case ARG_BLOCKSIZE: g_value_set_ulong (value, src->block_size); break; - case ARG_OFFSET: - g_value_set_int64 (value, src->curoffset); - break; case ARG_MAPSIZE: g_value_set_ulong (value, src->mapsize); break; @@ -594,7 +580,6 @@ /* we're done, return the buffer */ src->curoffset += GST_BUFFER_SIZE(buf); - g_object_notify (G_OBJECT (src), "offset"); return buf; } @@ -634,12 +619,6 @@ src->curoffset = 0; - /* now notify of the changes */ - g_object_freeze_notify (G_OBJECT (src)); - g_object_notify (G_OBJECT (src), "filesize"); - g_object_notify (G_OBJECT (src), "offset"); - g_object_thaw_notify (G_OBJECT (src)); - GST_FLAG_SET (src, GST_FILESRC_OPEN); } return TRUE; @@ -658,11 +637,6 @@ src->fd = 0; src->filelen = 0; src->curoffset = 0; - /* and notify that things changed */ - g_object_freeze_notify (G_OBJECT (src)); - g_object_notify (G_OBJECT (src), "filesize"); - g_object_notify (G_OBJECT (src), "offset"); - g_object_thaw_notify (G_OBJECT (src)); if (src->mapbuf) gst_buffer_unref (src->mapbuf); @@ -769,7 +743,6 @@ goto error; break; } - g_object_notify (G_OBJECT (src), "offset"); src->seek_happened = TRUE; src->need_flush = GST_EVENT_SEEK_FLAGS(event) & GST_SEEK_FLAG_FLUSH; break; |