[MPlayer-dev-eng] Resetting internal playtree

Torinthiel torinthiel at data.pl
Sun Aug 5 22:42:48 CEST 2007


On Sun, Aug 05, 2007 at 12:50:38PM +0200, Ralf wrote:
> Aloha.
> I'm new to mplayer and a little bit outdated in programming c ;)
> Is the following code good to destroy the internal playtree and set up a 
> new one?
> 
> if(playtree) {
> play_tree_free_list(playtree, 1);
> playtree = NULL;
> }
> else {
> playtree=play_tree_new();
> }

I'm not good at MPlayer code as well, but certainly no.
Maybe if  playtree=play_tree_new(); was not inside else it would go.
Right now it'll probably EITHER destroy the internal playtree OR setup
a new one.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 3073512
   torinthiel(at)data(dot)pl
   gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999  D714 7CEB CDDC 0906 A2CE
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070805/789f305c/attachment.pgp>


More information about the MPlayer-dev-eng mailing list