VLC 0.9.0 : HTTP Intf & rpn.c : playlist_Control args

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
AmiSyl
New Cone
New Cone
Posts: 9
Joined: 02 Oct 2005 19:25

VLC 0.9.0 : HTTP Intf & rpn.c : playlist_Control args

Postby AmiSyl » 25 Jul 2007 21:26

hello there,

I found a strange 'bug' in the rpn.c file from the http interface, in the 0.9.0-svn I've got from http://nightlies.videolan.org/build/sid ... 0723-0125/
I'm using Kubuntu 7.04 on an AMD64, and as the vlc build for Feisty (the 7.04) is not working correctly, I had to compile one
I already have experience in this, so it was not a pain, but then a bug appeared :evil:
not a really big bug, but annoying when using http-rpn commands

I'm using VLC for the FreePlayer, from the french ISP Free, and at the beginnning (just after a glorious "make install") only the 'play' command was working
it was impossible to stop, pause, even to change video, it was playing the same file (in fact the file with first index in the playlist)
after a short search, I found that the playlist_Control args in rpn.c are not in the good position
for example, at line 506, one can find :

Code: Select all

playlist_Control( p_sys->p_playlist, VLC_TRUE, PLAYLIST_STOP );
which should be

Code: Select all

playlist_Control( p_sys->p_playlist, PLAYLIST_STOP, VLC_TRUE );
as defined by the playlist_Control function (in src/playlist/control.c)

Code: Select all

int playlist_Control( playlist_t * p_playlist, int i_query, vlc_bool_t b_locked, ... )
I had a look in 0.8.6c sources and this vlc_bool_t seems to not exist... maybe a 0.9 feature ?
just reorganizing the 5 lines (stop, pause, next, previous, seek) and recompile did the trick, and now my FreePlayer is back to normal :)
(well in fact I had to change some html files too, but that's another subject :))
Every software needs debugging.
Every debugged software is obsolete...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.9.0 : HTTP Intf & rpn.c : playlist_Control args

Postby Jean-Baptiste Kempf » 26 Jul 2007 10:23

hmmm... Can you send a patch to vlc-devel ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

AmiSyl
New Cone
New Cone
Posts: 9
Joined: 02 Oct 2005 19:25

Re: VLC 0.9.0 : HTTP Intf & rpn.c : playlist_Control args

Postby AmiSyl » 26 Jul 2007 19:38

I'm afraid not :/
if someone else could, here is the patch

Code: Select all

--- rpn-orig.c 2007-03-25 21:35:14.000000000 +0200 +++ rpn.c 2007-07-25 20:45:40.000000000 +0200 @@ -503,22 +503,22 @@ } else if( !strcmp( s, "vlc_stop" ) ) { - playlist_Control( p_sys->p_playlist, VLC_TRUE, PLAYLIST_STOP ); + playlist_Control( p_sys->p_playlist, PLAYLIST_STOP, VLC_TRUE ); msg_Dbg( p_intf, "requested playlist stop" ); } else if( !strcmp( s, "vlc_pause" ) ) { - playlist_Control( p_sys->p_playlist, VLC_TRUE, PLAYLIST_PAUSE ); + playlist_Control( p_sys->p_playlist, PLAYLIST_PAUSE, VLC_TRUE ); msg_Dbg( p_intf, "requested playlist pause" ); } else if( !strcmp( s, "vlc_next" ) ) { - playlist_Control( p_sys->p_playlist, VLC_TRUE, PLAYLIST_SKIP, 1 ); + playlist_Control( p_sys->p_playlist, PLAYLIST_SKIP, VLC_TRUE, 1 ); msg_Dbg( p_intf, "requested playlist next" ); } else if( !strcmp( s, "vlc_previous" ) ) { - playlist_Control( p_sys->p_playlist, VLC_TRUE, PLAYLIST_SKIP, -1 ); + playlist_Control( p_sys->p_playlist, PLAYLIST_SKIP, VLC_TRUE, -1 ); msg_Dbg( p_intf, "requested playlist previous" ); } else if( !strcmp( s, "vlc_seek" ) )
Every software needs debugging.
Every debugged software is obsolete...

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: VLC 0.9.0 : HTTP Intf & rpn.c : playlist_Control args

Postby dionoea » 26 Jul 2007 20:00

Fixed (as well as the 3 following playlist_Control() calls) in revision 20890. Thanks a lot.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.9.0 : HTTP Intf & rpn.c : playlist_Control args

Postby Jean-Baptiste Kempf » 26 Jul 2007 23:49

Thanks +1.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests