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
66e08e1b
Commit
66e08e1b
authored
Jan 26, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlcpp: directly access to the instance.
parent
9225ec11
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
25 deletions
+4
-25
bindings/libvlcpp/src/libvlc.cpp
bindings/libvlcpp/src/libvlc.cpp
+0
-5
bindings/libvlcpp/src/libvlc.hpp
bindings/libvlcpp/src/libvlc.hpp
+0
-6
bindings/libvlcpp/src/media.cpp
bindings/libvlcpp/src/media.cpp
+1
-5
bindings/libvlcpp/src/media.hpp
bindings/libvlcpp/src/media.hpp
+0
-6
bindings/libvlcpp/src/media_player.cpp
bindings/libvlcpp/src/media_player.cpp
+3
-3
No files found.
bindings/libvlcpp/src/libvlc.cpp
View file @
66e08e1b
...
...
@@ -37,11 +37,6 @@ libVLC::~libVLC()
libvlc_release
(
m_instance
);
}
libvlc_instance_t
*
libVLC
::
instance
()
{
return
m_instance
;
}
const
char
*
libVLC
::
version
()
{
return
libvlc_get_version
();
...
...
bindings/libvlcpp/src/libvlc.hpp
View file @
66e08e1b
...
...
@@ -64,12 +64,6 @@ public:
const
char
*
chanset
();
private:
/**
* Get the instance of libvlc that cannot be modified
* @return the instance of libvlc
*/
libvlc_instance_t
*
instance
();
/** The instance of libvlc */
libvlc_instance_t
*
m_instance
;
...
...
bindings/libvlcpp/src/media.cpp
View file @
66e08e1b
...
...
@@ -29,7 +29,7 @@ using namespace libvlc;
Media
::
Media
(
libVLC
&
libvlcInstance
,
const
char
*
psz_mrl
)
{
Exception
ex
;
m_media
=
libvlc_media_new
(
libvlcInstance
.
instance
()
,
psz_mrl
,
&
ex
.
ex
);
m_media
=
libvlc_media_new
(
libvlcInstance
.
m_instance
,
psz_mrl
,
&
ex
.
ex
);
}
Media
::
Media
(
const
Media
&
original
)
...
...
@@ -98,7 +98,3 @@ void *Media::userData()
return
libvlc_media_get_user_data
(
m_media
);
}
libvlc_media_t
*
Media
::
instance
()
{
return
m_media
;
}
bindings/libvlcpp/src/media.hpp
View file @
66e08e1b
...
...
@@ -135,12 +135,6 @@ public:
void
*
userData
();
private:
/**
* Get the instance of the libvlc_media_t
* @return the pointer to libvlc_media_t
*/
libvlc_media_t
*
instance
();
/** The media */
libvlc_media_t
*
m_media
;
...
...
bindings/libvlcpp/src/media_player.cpp
View file @
66e08e1b
...
...
@@ -29,13 +29,13 @@ using namespace libvlc;
MediaPlayer
::
MediaPlayer
(
libVLC
&
libvlcInstance
)
{
Exception
ex
;
m_player
=
libvlc_media_player_new
(
libvlcInstance
.
instance
()
,
&
ex
.
ex
);
m_player
=
libvlc_media_player_new
(
libvlcInstance
.
m_instance
,
&
ex
.
ex
);
}
MediaPlayer
::
MediaPlayer
(
Media
&
media
)
{
Exception
ex
;
m_player
=
libvlc_media_player_new_from_media
(
media
.
instance
()
,
&
ex
.
ex
);
m_player
=
libvlc_media_player_new_from_media
(
media
.
m_media
,
&
ex
.
ex
);
}
MediaPlayer
::~
MediaPlayer
()
...
...
@@ -45,7 +45,7 @@ MediaPlayer::~MediaPlayer()
void
MediaPlayer
::
setMedia
(
Media
&
media
)
{
libvlc_media_player_set_media
(
m_player
,
media
.
instance
()
);
libvlc_media_player_set_media
(
m_player
,
media
.
m_media
);
}
int
MediaPlayer
::
isPlaying
()
...
...
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