about a patch

Matthias Kretz kretz at kde.org
Tue Nov 25 16:22:08 CET 2008


On Tuesday 25 November 2008 15:25:07 Richard wrote:
> >> Then you can:
> >> mediaObject->setCurrentSource(MediaSource());
> >
> > Yes, which should be treated as the application doing something
> > wrong (not
> > fatal, though), whether we want to handle it the same as
> > MediaSource::Empty
> > I'm not sure about yet.
>
> MediaSource source();
> Q_ASSERT(source.type() == Empty);
> mediaObject->setCurrentSource(source); // Remove currently loaded media.
>
> ...would make sense to me (then there would be not need for the static
> function, alltough I don't think it so bad).

Hmm, so we'd redefine the meaning of MediaSource() from Invalid to Empty. 
Perhaps the most sensible way. Dunno why I rejected that when thinking about 
it...

New patch attached.

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: empty-mediasource2.patch
Type: text/x-patch
Size: 4112 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/phonon-backends/attachments/20081125/ece156e8/attachment.patch 


More information about the Phonon-backends mailing list