Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
53474be3
Commit
53474be3
authored
Aug 26, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- refuse to act if Range is specified since we cannot seek
- always round Scale to 1 because we only support that value
parent
efece9e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+16
-0
No files found.
modules/stream_out/rtsp.c
View file @
53474be3
...
@@ -332,6 +332,11 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
...
@@ -332,6 +332,11 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
answer
->
i_status
=
200
;
answer
->
i_status
=
200
;
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
if
(
httpd_MsgGet
(
query
,
"Range"
)
!=
NULL
)
{
answer
->
i_status
=
456
;
/* cannot seek */
break
;
}
vlc_mutex_lock
(
&
rtsp
->
lock
);
vlc_mutex_lock
(
&
rtsp
->
lock
);
ses
=
RtspClientGet
(
rtsp
,
psz_session
);
ses
=
RtspClientGet
(
rtsp
,
psz_session
);
...
@@ -348,6 +353,9 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
...
@@ -348,6 +353,9 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
}
}
}
}
vlc_mutex_unlock
(
&
rtsp
->
lock
);
vlc_mutex_unlock
(
&
rtsp
->
lock
);
if
(
httpd_MsgGet
(
query
,
"Scale"
)
!=
NULL
)
httpd_MsgAdd
(
answer
,
"Scale"
,
"1."
);
break
;
break
;
}
}
...
@@ -630,6 +638,11 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
...
@@ -630,6 +638,11 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
answer
->
i_status
=
200
;
answer
->
i_status
=
200
;
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
if
(
httpd_MsgGet
(
query
,
"Range"
)
!=
NULL
)
{
answer
->
i_status
=
456
;
/* cannot seek */
break
;
}
vlc_mutex_lock
(
&
rtsp
->
lock
);
vlc_mutex_lock
(
&
rtsp
->
lock
);
ses
=
RtspClientGet
(
rtsp
,
psz_session
);
ses
=
RtspClientGet
(
rtsp
,
psz_session
);
...
@@ -646,6 +659,9 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
...
@@ -646,6 +659,9 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
}
}
}
}
vlc_mutex_unlock
(
&
rtsp
->
lock
);
vlc_mutex_unlock
(
&
rtsp
->
lock
);
if
(
httpd_MsgGet
(
query
,
"Scale"
)
!=
NULL
)
httpd_MsgAdd
(
answer
,
"Scale"
,
"1."
);
break
;
break
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment