{
input_thread_t *p_input_thread;
- if( !p_input ) RAISENULL( "Input is NULL" );
+ if( !p_input )
+ RAISENULL( "Input is NULL" );
p_input_thread = (input_thread_t*)vlc_object_get(
p_input->p_instance->p_libvlc_int,
p_input->i_input_id );
- if( !p_input_thread ) RAISENULL( "Input does not exist" );
+ if( !p_input_thread )
+ RAISENULL( "Input does not exist" );
return p_input_thread;
}
-
/**************************************************************************
* Getters for stream information
vlc_value_t val;
p_input_thread = libvlc_get_input_thread ( p_input, p_e);
- if( libvlc_exception_raised( p_e ) ) return -1;
-
+ if( libvlc_exception_raised( p_e ) )
+ return -1;
+
var_Get( p_input_thread, "length", &val );
vlc_object_release( p_input_thread );
vlc_value_t val;
p_input_thread = libvlc_get_input_thread ( p_input, p_e );
- if( libvlc_exception_raised( p_e ) ) return -1;
+ if( libvlc_exception_raised( p_e ) )
+ return -1;
var_Get( p_input_thread , "time", &val );
vlc_object_release( p_input_thread );
vlc_value_t value;
p_input_thread = libvlc_get_input_thread ( p_input, p_e );
- if( libvlc_exception_raised( p_e ) ) return;
-
+ if( libvlc_exception_raised( p_e ) )
+ return;
+
value.i_time = time*1000LL;
var_Set( p_input_thread, "time", value );
vlc_object_release( p_input_thread );
input_thread_t *p_input_thread;
vlc_value_t val;
val.f_float = position;
-
+
p_input_thread = libvlc_get_input_thread ( p_input, p_e);
- if ( libvlc_exception_raised( p_e ) ) return;
+ if ( libvlc_exception_raised( p_e ) )
+ return;
var_Set( p_input_thread, "position", val );
vlc_object_release( p_input_thread );
vlc_value_t val;
p_input_thread = libvlc_get_input_thread ( p_input, p_e);
- if ( libvlc_exception_raised( p_e ) ) return -1.0;
+ if ( libvlc_exception_raised( p_e ) )
+ return -1.0;
var_Get( p_input_thread, "position", &val );
vlc_object_release( p_input_thread );
input_thread_t *p_input_thread;
p_input_thread = libvlc_get_input_thread ( p_input, p_e );
- if ( libvlc_exception_raised( p_e ) ) return 0.0;
+ if ( libvlc_exception_raised( p_e ) )
+ return 0.0;
if( demux2_Control( p_input_thread->input.p_demux, DEMUX_GET_FPS, &f_fps )
|| f_fps < 0.1 )
{
input_thread_t *p_input_thread =
libvlc_get_input_thread ( p_input, p_e);
- if ( libvlc_exception_raised( p_e ) ) return VLC_FALSE;
+ if ( libvlc_exception_raised( p_e ) )
+ return VLC_FALSE;
if ( !p_input_thread->b_die && !p_input_thread->b_dead )
{
RAISEVOID( "Rate value is invalid" );
val.i_int = 1000.0f/rate;
-
+
p_input_thread = libvlc_get_input_thread ( p_input, p_e);
- if ( libvlc_exception_raised( p_e ) ) return;
+ if ( libvlc_exception_raised( p_e ) )
+ return;
var_Set( p_input_thread, "rate", val );
vlc_object_release( p_input_thread );
vlc_value_t val;
p_input_thread = libvlc_get_input_thread ( p_input, p_e);
- if ( libvlc_exception_raised( p_e ) ) return -1.0;
+ if ( libvlc_exception_raised( p_e ) )
+ return -1.0;
var_Get( p_input_thread, "rate", &val );
vlc_object_release( p_input_thread );
vlc_value_t val;
p_input_thread = libvlc_get_input_thread ( p_input, p_e);
- if ( libvlc_exception_raised( p_e ) ) return 0;
+ if ( libvlc_exception_raised( p_e ) )
+ return 0;
var_Get( p_input_thread, "state", &val );
vlc_object_release( p_input_thread );
*
* $Id: core.c 14187 2006-02-07 16:37:40Z courmisch $
*
- * Authors: Clément Stenac <zorglub@videolan.org>
+ * Authors: Cl�ent Stenac <zorglub@videolan.org>
* Filippo Carone <littlejohn@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
return NULL;
}
vlc_object_release( p_input_thread );
-
+
return p_vout;
}
/**********************************************************************
"Unexpected error while setting fullscreen value" );
vlc_object_release( p_vout1 );
-
}
int libvlc_get_fullscreen( libvlc_input_t *p_input,
"Unexpected error while setting fullscreen value" );
vlc_object_release( p_vout1 );
-
}
void
{
vout_thread_t *p_vout = GetVout( p_input, p_e );
input_thread_t *p_input_thread;
-
+
char path[256];
/* GetVout will raise the exception for us */
libvlc_exception_raise( p_e, "Input does not exist" );
return;
}
-
+
snprintf( path, 255, "%s", psz_filepath );
var_SetString( p_vout, "snapshot-path", path );
var_SetString( p_vout, "snapshot-format", "png" );
vout_Control( p_vout, VOUT_SNAPSHOT );
vlc_object_release( p_vout );
vlc_object_release( p_input_thread );
-
- return;
-
}
int libvlc_video_get_height( libvlc_input_t *p_input,
}
vlc_object_release( p_vout );
-
+
return VLC_TRUE;
}
vout_thread_t *p_vout = GetVout( p_input, p_e );
vout_Control( p_vout , VOUT_REPARENT, d);
vlc_object_release( p_vout );
-
+
return 0;
-
}
void libvlc_video_resize( libvlc_input_t *p_input, int width, int height, libvlc_exception_t *p_e )
vlc_object_detach( p_vout );
vlc_object_release( p_vout );
vout_Destroy( p_vout );
-
+
return 0;
-
}