[vlc-devel] commit: Suxor thread: cleanup ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jun 30 21:37:38 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Jun 30 22:39:08 2008 +0300| [d2aa472ee162b6c81403b90a4eb0b3e44fc778a9]
Suxor thread: cleanup
Why call vlc_thread_ready when the other side does not wait anyway...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d2aa472ee162b6c81403b90a4eb0b3e44fc778a9
---
src/video_output/video_output.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 122fd2c..172f5fc 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1413,18 +1413,12 @@ typedef struct suxor_thread_t
static void SuxorRestartVideoES( suxor_thread_t *p_this )
{
- vlc_value_t val;
-
- vlc_thread_ready( p_this );
-
/* Now restart current video stream */
- var_Get( p_this->p_input, "video-es", &val );
- if( val.i_int >= 0 )
+ int val = var_GetInteger( p_this->p_input, "video-es" );
+ if( val >= 0 )
{
- vlc_value_t val_es;
- val_es.i_int = -VIDEO_ES;
- var_Set( p_this->p_input, "video-es", val_es );
- var_Set( p_this->p_input, "video-es", val );
+ var_SetInteger( p_this->p_input, "video-es", -VIDEO_ES );
+ var_SetInteger( p_this->p_input, "video-es", val );
}
vlc_object_release( p_this->p_input );
More information about the vlc-devel
mailing list