[vlc-commits] commit: vod_rtsp: do not unpause stream on PAUSE request (Pierre Ynard )
git at videolan.org
git at videolan.org
Tue May 18 16:07:46 CEST 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue May 18 16:05:38 2010 +0200| [a855ebbf411df4b4d73d2d1764a21ade4140d34c] | committer: Pierre Ynard
vod_rtsp: do not unpause stream on PAUSE request
Untested
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a855ebbf411df4b4d73d2d1764a21ade4140d34c
---
modules/misc/rtsp.c | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 7f4ae09..70265a6 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -1239,9 +1239,12 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
p_rtsp = RtspClientGet( p_media, psz_session );
if( !p_rtsp ) break;
- CommandPush( p_vod, RTSP_CMD_TYPE_PAUSE, p_media, psz_session,
- 0, NULL );
- p_rtsp->b_paused = true;
+ if( !p_rtsp->b_paused )
+ {
+ CommandPush( p_vod, RTSP_CMD_TYPE_PAUSE, p_media, psz_session,
+ 0, NULL );
+ p_rtsp->b_paused = true;
+ }
answer->i_status = 200;
answer->i_body = 0;
@@ -1499,9 +1502,12 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
p_rtsp = RtspClientGet( p_media, psz_session );
if( !p_rtsp ) break;
- CommandPush( p_vod, RTSP_CMD_TYPE_PAUSE, p_media, psz_session,
- 0, NULL );
- p_rtsp->b_paused = true;
+ if( !p_rtsp->b_paused )
+ {
+ CommandPush( p_vod, RTSP_CMD_TYPE_PAUSE, p_media, psz_session,
+ 0, NULL );
+ p_rtsp->b_paused = true;
+ }
answer->i_status = 200;
answer->i_body = 0;
More information about the vlc-commits
mailing list