Commit ac35c595 authored by Gildas Bazin's avatar Gildas Bazin

* src/input/input_ext-plugins.c: fixed previous commit.
* modules/gui/wxwindows/interface.cpp: fixed a couple of bugs.
parent ebd0d973
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc * interface.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.50 2003/07/20 10:38:49 gbazin Exp $ * $Id: interface.cpp,v 1.51 2003/07/20 20:33:17 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -633,12 +633,7 @@ void Interface::OnPlayStream( wxCommandEvent& WXUNUSED(event) ) ...@@ -633,12 +633,7 @@ void Interface::OnPlayStream( wxCommandEvent& WXUNUSED(event) )
playlist_t *p_playlist = playlist_t *p_playlist =
(playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE ); FIND_ANYWHERE );
if( p_playlist == NULL ) if( p_playlist == NULL ) return;
{
/* If the playlist is empty, open a file requester instead */
OnShowDialog( dummy );
return;
}
if( p_playlist->i_size ) if( p_playlist->i_size )
{ {
...@@ -672,7 +667,7 @@ void Interface::OnPlayStream( wxCommandEvent& WXUNUSED(event) ) ...@@ -672,7 +667,7 @@ void Interface::OnPlayStream( wxCommandEvent& WXUNUSED(event) )
} }
else else
{ {
vlc_mutex_unlock( &p_playlist->object_lock ); /* If the playlist is empty, open a file requester instead */
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
OnShowDialog( dummy ); OnShowDialog( dummy );
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ext-plugins.c: useful functions for access and demux plug-ins * input_ext-plugins.c: useful functions for access and demux plug-ins
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: input_ext-plugins.c,v 1.33 2003/07/20 15:17:47 gbazin Exp $ * $Id: input_ext-plugins.c,v 1.34 2003/07/20 20:33:17 gbazin Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -490,11 +490,6 @@ ssize_t input_FillBuffer( input_thread_t * p_input ) ...@@ -490,11 +490,6 @@ ssize_t input_FillBuffer( input_thread_t * p_input )
while( p_buf == NULL ) while( p_buf == NULL )
{ {
if( p_input->b_die || p_input->b_error || p_input->b_eof )
{
return -1;
}
p_buf = NewBuffer( p_input->p_method_data, p_buf = NewBuffer( p_input->p_method_data,
i_remains + p_input->i_bufsize, VLC_FALSE ); i_remains + p_input->i_bufsize, VLC_FALSE );
if( p_buf == NULL ) if( p_buf == NULL )
...@@ -503,6 +498,11 @@ ssize_t input_FillBuffer( input_thread_t * p_input ) ...@@ -503,6 +498,11 @@ ssize_t input_FillBuffer( input_thread_t * p_input )
msg_Err( p_input, msg_Err( p_input,
"failed allocating a new buffer (decoder stuck?)" ); "failed allocating a new buffer (decoder stuck?)" );
msleep( INPUT_IDLE_SLEEP ); msleep( INPUT_IDLE_SLEEP );
if( p_input->b_die || p_input->b_error || p_input->b_eof )
{
return -1;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment