[vlc-commits] podcast: use input "state" variable instead of b_eof/b_error
Rémi Denis-Courmont
git at videolan.org
Fri Jun 5 21:34:07 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jun 5 22:07:43 2015 +0300| [35f50bdc3529d5887c4a3a6cfa6fdb38a71a914f] | committer: Rémi Denis-Courmont
podcast: use input "state" variable instead of b_eof/b_error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35f50bdc3529d5887c4a3a6cfa6fdb38a71a914f
---
modules/services_discovery/podcast.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/services_discovery/podcast.c b/modules/services_discovery/podcast.c
index 86663ae..010a73a 100644
--- a/modules/services_discovery/podcast.c
+++ b/modules/services_discovery/podcast.c
@@ -235,8 +235,9 @@ static void *Run( void *data )
for( int i = 0; i < p_sd->p_sys->i_input; i++ )
{
input_thread_t *p_input = p_sd->p_sys->pp_input[i];
+ int state = var_GetInteger( p_input, "state" );
- if( p_input->b_eof || p_input->b_error )
+ if( state == END_S || state == ERROR_S )
{
input_Stop( p_input );
input_Close( p_input );
More information about the vlc-commits
mailing list