[vlc-commits] es_out: turn the hardcoded stop sleep into a CLOCK_FREQ based value
Steve Lhomme
git at videolan.org
Sat May 5 18:10:26 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May 5 09:57:13 2018 +0200| [55d84f1eb7667f7564ada3077ad172ea913e2445] | committer: Rémi Denis-Courmont
es_out: turn the hardcoded stop sleep into a CLOCK_FREQ based value
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=55d84f1eb7667f7564ada3077ad172ea913e2445
---
src/input/es_out.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index a1b3afff51..7221fbb357 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2178,7 +2178,7 @@ static void EsOutDel( es_out_t *out, es_out_id_t *es )
break;
/* FIXME there should be a way to have auto deleted es, but there will be
* a problem when another codec of the same type is created (mainly video) */
- msleep( 20*1000 );
+ msleep( CLOCK_FREQ/50 );
}
EsUnselect( out, es, es->p_pgrm == p_sys->p_pgrm );
}
More information about the vlc-commits
mailing list