Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6395b3e5
Commit
6395b3e5
authored
Mar 10, 2009
by
JP Dinger
Committed by
Rémi Denis-Courmont
Mar 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move users of playlist_select() inline.
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
0cca872b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
56 deletions
+40
-56
projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.cpp
+0
-46
projects/mozilla/vlcplugin.h
projects/mozilla/vlcplugin.h
+40
-10
No files found.
projects/mozilla/vlcplugin.cpp
View file @
6395b3e5
...
...
@@ -344,24 +344,6 @@ int VlcPlugin::playlist_add_extended_untrusted( const char *mrl, const char *nam
return
item
;
}
void
VlcPlugin
::
playlist_play
(
libvlc_exception_t
*
ex
)
{
if
(
libvlc_media_player
||
playlist_select
(
0
,
ex
)
)
libvlc_media_player_play
(
libvlc_media_player
,
ex
);
}
void
VlcPlugin
::
playlist_play_item
(
int
idx
,
libvlc_exception_t
*
ex
)
{
if
(
playlist_select
(
idx
,
ex
)
)
libvlc_media_player_play
(
libvlc_media_player
,
ex
);
}
void
VlcPlugin
::
playlist_stop
(
libvlc_exception_t
*
ex
)
{
if
(
libvlc_media_player
)
libvlc_media_player_stop
(
libvlc_media_player
,
ex
);
}
bool
VlcPlugin
::
playlist_select
(
int
idx
,
libvlc_exception_t
*
ex
)
{
libvlc_media_t
*
p_m
=
NULL
;
...
...
@@ -401,24 +383,6 @@ bad_unlock:
return
false
;
}
void
VlcPlugin
::
playlist_next
(
libvlc_exception_t
*
ex
)
{
if
(
playlist_select
(
playlist_index
+
1
,
ex
)
)
libvlc_media_player_play
(
libvlc_media_player
,
ex
);
}
void
VlcPlugin
::
playlist_prev
(
libvlc_exception_t
*
ex
)
{
if
(
playlist_select
(
playlist_index
-
1
,
ex
)
)
libvlc_media_player_play
(
libvlc_media_player
,
ex
);
}
void
VlcPlugin
::
playlist_pause
(
libvlc_exception_t
*
ex
)
{
if
(
libvlc_media_player
)
libvlc_media_player_pause
(
libvlc_media_player
,
ex
);
}
void
VlcPlugin
::
playlist_delete_item
(
int
idx
,
libvlc_exception_t
*
ex
)
{
libvlc_media_list_lock
(
libvlc_media_list
);
...
...
@@ -442,26 +406,16 @@ int VlcPlugin::playlist_count( libvlc_exception_t *ex )
return
items_count
;
}
int
VlcPlugin
::
playlist_isplaying
(
libvlc_exception_t
*
ex
)
{
int
is_playing
=
0
;
if
(
libvlc_media_player
)
is_playing
=
libvlc_media_player_is_playing
(
libvlc_media_player
,
ex
);
return
is_playing
;
}
void
VlcPlugin
::
toggle_fullscreen
(
libvlc_exception_t
*
ex
)
{
if
(
playlist_isplaying
(
ex
)
)
libvlc_toggle_fullscreen
(
libvlc_media_player
,
ex
);
}
void
VlcPlugin
::
set_fullscreen
(
int
yes
,
libvlc_exception_t
*
ex
)
{
if
(
playlist_isplaying
(
ex
)
)
libvlc_set_fullscreen
(
libvlc_media_player
,
yes
,
ex
);
}
int
VlcPlugin
::
get_fullscreen
(
libvlc_exception_t
*
ex
)
{
int
r
=
0
;
...
...
projects/mozilla/vlcplugin.h
View file @
6395b3e5
...
...
@@ -147,22 +147,51 @@ public:
int
b_toolbar
;
char
*
psz_target
;
bool
playlist_select
(
int
,
libvlc_exception_t
*
);
void
playlist_play
(
libvlc_exception_t
*
ex
)
{
if
(
libvlc_media_player
||
playlist_select
(
0
,
ex
)
)
libvlc_media_player_play
(
libvlc_media_player
,
ex
);
}
void
playlist_play_item
(
int
idx
,
libvlc_exception_t
*
ex
)
{
if
(
playlist_select
(
idx
,
ex
)
)
libvlc_media_player_play
(
libvlc_media_player
,
ex
);
}
void
playlist_stop
(
libvlc_exception_t
*
ex
)
{
if
(
libvlc_media_player
)
libvlc_media_player_stop
(
libvlc_media_player
,
ex
);
}
void
playlist_next
(
libvlc_exception_t
*
ex
)
{
if
(
playlist_select
(
playlist_index
+
1
,
ex
)
)
libvlc_media_player_play
(
libvlc_media_player
,
ex
);
}
void
playlist_prev
(
libvlc_exception_t
*
ex
)
{
if
(
playlist_select
(
playlist_index
-
1
,
ex
)
)
libvlc_media_player_play
(
libvlc_media_player
,
ex
);
}
void
playlist_pause
(
libvlc_exception_t
*
ex
)
{
if
(
libvlc_media_player
)
libvlc_media_player_pause
(
libvlc_media_player
,
ex
);
}
int
playlist_isplaying
(
libvlc_exception_t
*
ex
)
{
int
is_playing
=
0
;
if
(
libvlc_media_player
)
is_playing
=
libvlc_media_player_is_playing
(
libvlc_media_player
,
ex
);
return
is_playing
;
}
int
playlist_add
(
const
char
*
,
libvlc_exception_t
*
);
int
playlist_add_extended_untrusted
(
const
char
*
,
const
char
*
,
int
,
const
char
**
,
libvlc_exception_t
*
);
void
playlist_play
(
libvlc_exception_t
*
);
void
playlist_play_item
(
int
,
libvlc_exception_t
*
);
void
playlist_stop
(
libvlc_exception_t
*
);
void
playlist_next
(
libvlc_exception_t
*
);
void
playlist_prev
(
libvlc_exception_t
*
);
void
playlist_pause
(
libvlc_exception_t
*
);
void
playlist_delete_item
(
int
,
libvlc_exception_t
*
);
void
playlist_clear
(
libvlc_exception_t
*
);
int
playlist_count
(
libvlc_exception_t
*
);
int
playlist_isplaying
(
libvlc_exception_t
*
);
void
toggle_fullscreen
(
libvlc_exception_t
*
);
void
set_fullscreen
(
int
,
libvlc_exception_t
*
);
...
...
@@ -171,6 +200,7 @@ public:
int
player_has_vout
(
libvlc_exception_t
*
);
private:
bool
playlist_select
(
int
,
libvlc_exception_t
*
);
void
set_player_window
(
libvlc_exception_t
*
);
/* VLC reference */
...
...
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