Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
beba5830
Commit
beba5830
authored
Nov 20, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* do not set request on startup, we don't want autoplay
* fix bug in SDP parser
parent
c9930622
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
include/vlc_common.h
include/vlc_common.h
+1
-0
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+1
-1
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+5
-2
src/playlist/playlist.c
src/playlist/playlist.c
+11
-0
No files found.
include/vlc_common.h
View file @
beba5830
...
...
@@ -206,6 +206,7 @@ typedef struct msg_subscription_t msg_subscription_t;
*/
typedef
enum
{
PLAYLIST_PLAY
,
/**< No arg. res=can fail*/
PLAYLIST_AUTOPLAY
,
/**< No arg. res=cant fail*/
PLAYLIST_VIEWPLAY
,
/**< arg1= int, arg2= playlist_item_t*,*/
/** arg3 = playlist_item_t* , res=can fail */
PLAYLIST_ITEMPLAY
,
/** <arg1 = playlist_item_t * , res=can fail */
...
...
modules/gui/skins2/src/skin_main.cpp
View file @
beba5830
...
...
@@ -235,7 +235,7 @@ static void Run( intf_thread_t *p_intf )
if
(
p_playlist
)
{
p_playlist
->
status
.
i_view
=
-
1
;
playlist_
Play
(
p_playlist
);
playlist_
Control
(
p_playlist
,
PLAYLIST_AUTOPLAY
);
vlc_object_release
(
p_playlist
);
}
}
...
...
modules/services_discovery/sap.c
View file @
beba5830
...
...
@@ -970,6 +970,7 @@ static sdp_t * ParseSDP( vlc_object_t *p_obj, char* psz_sdp )
{
sdp_t
*
p_sdp
;
vlc_bool_t
b_invalid
=
VLC_FALSE
;
vlc_bool_t
b_end
=
VLC_FALSE
;
if
(
psz_sdp
==
NULL
)
{
...
...
@@ -978,7 +979,8 @@ static sdp_t * ParseSDP( vlc_object_t *p_obj, char* psz_sdp )
if
(
psz_sdp
[
0
]
!=
'v'
||
psz_sdp
[
1
]
!=
'='
)
{
msg_Warn
(
p_obj
,
"bad SDP packet"
);
msg_Warn
(
p_obj
,
"bad SDP packet, begins with 0x%x(%c) 0x%x(%c)"
,
psz_sdp
[
0
],
psz_sdp
[
0
],
psz_sdp
[
1
],
psz_sdp
[
1
]);
return
NULL
;
}
...
...
@@ -997,7 +999,7 @@ static sdp_t * ParseSDP( vlc_object_t *p_obj, char* psz_sdp )
p_sdp
->
i_attributes
=
0
;
p_sdp
->
pp_attributes
=
NULL
;
while
(
*
psz_sdp
!=
'\0'
)
while
(
*
psz_sdp
!=
'\0'
&&
b_end
==
VLC_FALSE
)
{
char
*
psz_eol
;
char
*
psz_eof
;
...
...
@@ -1013,6 +1015,7 @@ static sdp_t * ParseSDP( vlc_object_t *p_obj, char* psz_sdp )
if
(
(
psz_eol
=
strchr
(
psz_sdp
,
'\n'
)
)
==
NULL
)
{
psz_eol
=
psz_sdp
+
strlen
(
psz_sdp
);
b_end
=
VLC_TRUE
;
}
if
(
psz_eol
>
psz_sdp
&&
*
(
psz_eol
-
1
)
==
'\r'
)
{
...
...
src/playlist/playlist.c
View file @
beba5830
...
...
@@ -306,6 +306,12 @@ int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args )
p_playlist
->
request
.
i_goto
=
-
1
;
break
;
case
PLAYLIST_AUTOPLAY
:
p_playlist
->
status
.
i_status
=
PLAYLIST_RUNNING
;
p_playlist
->
request
.
b_request
=
VLC_FALSE
;
break
;
case
PLAYLIST_PAUSE
:
val
.
i_int
=
0
;
if
(
p_playlist
->
p_input
)
...
...
@@ -357,6 +363,7 @@ int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args )
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
fprintf
(
stderr
,
"control done, request is %i
\n
"
,
p_playlist
->
request
.
b_request
);
return
VLC_SUCCESS
;
}
...
...
@@ -817,6 +824,10 @@ static playlist_item_t * NextItem( playlist_t *p_playlist )
{
p_playlist
->
i_index
++
;
p_new
=
p_playlist
->
pp_items
[
p_playlist
->
i_index
];
if
(
!
(
p_new
->
i_flags
&
PLAYLIST_SKIP_FLAG
)
)
{
return
NULL
;
}
}
else
{
...
...
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