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
1ab428a9
Commit
1ab428a9
authored
Dec 16, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Phonon: synchronise with KDE HEAD, part 1
parent
6455935a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
16 deletions
+13
-16
bindings/phonon/vlc/backend.h
bindings/phonon/vlc/backend.h
+0
-6
bindings/phonon/vlc/mediaobject.cpp
bindings/phonon/vlc/mediaobject.cpp
+1
-1
bindings/phonon/vlc/mediaobject.h
bindings/phonon/vlc/mediaobject.h
+5
-4
bindings/phonon/vlc/videowidget.cpp
bindings/phonon/vlc/videowidget.cpp
+1
-1
bindings/phonon/vlc/vlcloader.cpp
bindings/phonon/vlc/vlcloader.cpp
+6
-4
No files found.
bindings/phonon/vlc/backend.h
View file @
1ab428a9
...
...
@@ -32,12 +32,6 @@
#include <QtCore/QPointer>
#include <QtCore/QStringList>
#ifdef MAKE_PHONON_VLC_LIB // We are building this library
# define PHONON_VLC_EXPORT Q_DECL_EXPORT
#else // We are using this library
# define PHONON_VLC_EXPORT Q_DECL_IMPORT
#endif
namespace
Phonon
{
namespace
VLC
{
...
...
bindings/phonon/vlc/mediaobject.cpp
View file @
1ab428a9
...
...
@@ -61,7 +61,7 @@ MediaObject::~MediaObject()
{
}
void
MediaObject
::
setVideoWidgetId
(
int
i_widget_id
)
void
MediaObject
::
setVideoWidgetId
(
WId
i_widget_id
)
{
i_video_widget_id
=
i_widget_id
;
}
...
...
bindings/phonon/vlc/mediaobject.h
View file @
1ab428a9
...
...
@@ -25,6 +25,7 @@
#include <phonon/mediaobjectinterface.h>
#include <QtCore/QObject>
#include <QtGui/QWidget>
namespace
Phonon
{
...
...
@@ -45,7 +46,7 @@ public:
/**
* Widget Id where VLC will show the videos.
*/
void
setVideoWidgetId
(
int
i_widget_id
);
void
setVideoWidgetId
(
WId
i_widget_id
);
void
play
();
void
seek
(
qint64
milliseconds
);
...
...
@@ -69,8 +70,8 @@ public:
signals:
void
aboutToFinish
();
//
void bufferStatus( int i_percent_filled );
//
void currentSourceChanged( const MediaSource & newSource );
void
bufferStatus
(
int
i_percent_filled
);
void
currentSourceChanged
(
const
MediaSource
&
newSource
);
void
finished
();
void
hasVideoChanged
(
bool
b_has_video
);
void
metaDataChanged
(
const
QMultiMap
<
QString
,
QString
>
&
metaData
);
...
...
@@ -93,7 +94,7 @@ protected:
virtual
qint64
currentTimeInternal
()
const
=
0
;
int
i_video_widget_id
;
WId
i_video_widget_id
;
private
slots
:
...
...
bindings/phonon/vlc/videowidget.cpp
View file @
1ab428a9
...
...
@@ -61,7 +61,7 @@ void VideoWidget::connectToMediaObject(PrivateMediaObject *mediaObject)
connect
(
mediaObject
,
SIGNAL
(
videoWidgetSizeChanged
(
int
,
int
)),
SLOT
(
videoWidgetSizeChanged
(
int
,
int
)));
mediaObject
->
setVideoWidgetId
(
(
int
)
p_video_widget
->
winId
());
mediaObject
->
setVideoWidgetId
(
p_video_widget
->
winId
());
}
Phonon
::
VideoWidget
::
AspectRatio
VideoWidget
::
aspectRatio
()
const
...
...
bindings/phonon/vlc/vlcloader.cpp
View file @
1ab428a9
...
...
@@ -45,16 +45,18 @@ bool vlcInit()
QString
path
=
vlcPath
();
if
(
!
path
.
isEmpty
())
{
QString
pluginsPath
=
path
;
QString
pluginsPath
=
QString
(
"--plugin-path="
)
+
QDir
::
toNativeSeparators
(
QFileInfo
(
vlcPath
()).
dir
().
path
())
;
#if defined(Q_OS_UNIX)
pluginsPath
.
append
(
"/vlc"
);
#elif defined(Q_OS_WIN)
pluginsPath
.
append
(
"
\\
plugins"
);
#endif
QByteArray
p
=
path
.
toLatin1
();
QByteArray
pp
=
pluginsPath
.
toLatin1
();
// VLC command line options. See vlc --full-help
const
char
*
vlcArgs
[]
=
{
p
ath
.
toLatin1
()
.
constData
(),
"--plugin-path="
,
pluginsPath
.
toAscii
()
.
constData
(),
p
.
constData
(),
pp
.
constData
(),
"--verbose=2"
,
"--intf=dummy"
,
"--extraintf=logger"
,
...
...
@@ -157,7 +159,7 @@ static QStringList findAllLibVlc()
QString
vlcVersion
=
settings
.
value
(
"Version"
).
toString
();
QString
vlcInstallDir
=
settings
.
value
(
"InstallDir"
).
toString
();
if
(
vlcVersion
.
startsWith
(
"1.0"
)
&&
!
vlcInstallDir
.
isEmpty
())
{
paths
<<
vlcInstallDir
+
QLatin1Char
(
'\\'
)
+
"libvlc"
;
paths
<<
vlcInstallDir
+
QLatin1Char
(
'\\'
)
+
"libvlc
.dll
"
;
return
paths
;
}
else
{
return
QString
();
...
...
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