[gst-devel] Overwriting files in sinks

Stefan Kost ensonic at hora-obscura.de
Sat Sep 29 12:38:25 CEST 2007


Hi,

Sebastian Dröge wrote:
> Hi,
> I wondered what ways we currently have for overwriting files in sinks
> and what is the prefered way.
> There's a signal that is emitted in gnomevfssink, that apps can hook
> into to ask the user if the file should be overridden, filesink doesn't
> have such mechanism at all.
> 
> The signal in gnomevfssink is:
>   "allow-overwrite" :  gboolean user_function (GstElement* object,
>                                                GnomeVFSURI* arg0,
>                                                gpointer user_data);
> 
> Would it make sense to implement this signal in filesink and giosink
> (and any other file sinks), too? Of course the GnomeVFSURI parameter in
> those other sinks must be changed to something else, i.e. char *
> containing the URI.
> For 0.11 this should be changed in gnomevfssink as this way the app has
> to know about GnomeVFS unfortunately.
> 
> Does anybody have better ideas? Otherwise I'll go ahead and implement
> this in filesink and giosink.
> 
shouldn't this be done as a GInterface? Then an application can reliably detect
that it supports it.

Stefan


> Bye
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list