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
889d6361
Commit
889d6361
authored
Nov 15, 2005
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backported changes in revision 13253
parent
437eebf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
activex/plugin.cpp
activex/plugin.cpp
+1
-1
src/libvlc.c
src/libvlc.c
+10
-7
No files found.
activex/plugin.cpp
View file @
889d6361
...
@@ -569,7 +569,7 @@ HRESULT VLCPlugin::onLoad(void)
...
@@ -569,7 +569,7 @@ HRESULT VLCPlugin::onLoad(void)
if
(
NULL
!=
abs_url
)
if
(
NULL
!=
abs_url
)
{
{
if
(
SUCCEEDED
(
UrlCombineW
(
base_url
,
_bstr_mrl
,
abs_url
,
&
len
,
if
(
SUCCEEDED
(
UrlCombineW
(
base_url
,
_bstr_mrl
,
abs_url
,
&
len
,
URL_ESCAPE_UNSAFE
))
)
URL_ESCAPE_UNSAFE
|
URL_PLUGGABLE_PROTOCOL
))
)
{
{
SysFreeString
(
_bstr_mrl
);
SysFreeString
(
_bstr_mrl
);
_bstr_mrl
=
SysAllocStringLen
(
abs_url
,
len
);
_bstr_mrl
=
SysAllocStringLen
(
abs_url
,
len
);
...
...
src/libvlc.c
View file @
889d6361
...
@@ -1308,11 +1308,11 @@ int VLC_Stop( int i_object )
...
@@ -1308,11 +1308,11 @@ int VLC_Stop( int i_object )
/*****************************************************************************
/*****************************************************************************
* VLC_IsPlaying: Query for Playlist Status
* VLC_IsPlaying: Query for Playlist Status
*****************************************************************************/
*****************************************************************************/
vlc_bool_t
VLC_IsPlaying
(
int
i_object
)
vlc_bool_t
VLC_IsPlaying
(
int
i_object
)
{
{
playlist_t
*
p_playlist
;
playlist_t
*
p_playlist
;
vlc_bool_t
b_playing
;
vlc_bool_t
b_playing
;
vlc_value_t
val
;
vlc_t
*
p_vlc
=
vlc_current_object
(
i_object
);
vlc_t
*
p_vlc
=
vlc_current_object
(
i_object
);
...
@@ -1329,14 +1329,17 @@ vlc_bool_t VLC_IsPlaying( int i_object )
...
@@ -1329,14 +1329,17 @@ vlc_bool_t VLC_IsPlaying( int i_object )
if
(
i_object
)
vlc_object_release
(
p_vlc
);
if
(
i_object
)
vlc_object_release
(
p_vlc
);
return
VLC_ENOOBJ
;
return
VLC_ENOOBJ
;
}
}
if
(
!
p_playlist
->
p_input
)
if
(
p_playlist
->
p_input
)
{
{
if
(
i_object
)
vlc_object_release
(
p_vlc
);
vlc_value_t
val
;
vlc_object_release
(
p_playlist
);
var_Get
(
p_playlist
->
p_input
,
"state"
,
&
val
);
return
VLC_ENOOBJ
;
b_playing
=
(
val
.
i_int
==
PLAYING_S
);
}
else
{
b_playing
=
playlist_IsPlaying
(
p_playlist
);
}
}
var_Get
(
p_playlist
->
p_input
,
"state"
,
&
val
);
b_playing
=
(
val
.
i_int
==
PLAYING_S
);
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_playlist
);
if
(
i_object
)
vlc_object_release
(
p_vlc
);
if
(
i_object
)
vlc_object_release
(
p_vlc
);
...
...
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