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
865ab4ed
Commit
865ab4ed
authored
Dec 29, 2009
by
Martin T. H. Sandsmark
Committed by
Jean-Baptiste Kempf
Dec 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix building of phonon-vlc
parent
31e8f235
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
16 deletions
+55
-16
.gitignore
.gitignore
+0
-1
bindings/phonon/vlc-kde/CMakeLists.txt
bindings/phonon/vlc-kde/CMakeLists.txt
+40
-0
bindings/phonon/vlc/vlcloader.cpp
bindings/phonon/vlc/vlcloader.cpp
+1
-1
bindings/phonon/vlc/vlcmediaobject.cpp
bindings/phonon/vlc/vlcmediaobject.cpp
+14
-14
No files found.
.gitignore
View file @
865ab4ed
...
...
@@ -44,7 +44,6 @@ vlc_install_dir/*
# Ignore CMake Stuff
cmake
CMakeFiles
CMakeLists.txt
CTestTestfile.cmake
cmake_install.cmake
cmake_uninstall.cmake
...
...
bindings/phonon/vlc-kde/CMakeLists.txt
0 → 100644
View file @
865ab4ed
project
(
phonon-vlc
)
include_directories
(
${
QT_INCLUDES
}
${
VLC_INCLUDE_DIRS
}
${
CMAKE_CURRENT_SOURCE_DIR
}
)
add_definitions
(
-D_PHONON_BACKEND_VERSION_4_2
)
set
(
phonon_vlc_SRCS
audiooutput.cpp
backend.cpp
devicemanager.cpp
effect.cpp
effectmanager.cpp
mediacontroller.cpp
mediaobject.cpp
seekstack.cpp
sinknode.cpp
videowidget.cpp
vlcloader.cpp
vlcmediacontroller.cpp
vlcmediaobject.cpp
vlcvideowidget.cpp
widgetnopaintevent.cpp
)
automoc4
(
phonon_vlc phonon_vlc_SRCS
)
add_library
(
phonon_vlc MODULE
${
phonon_vlc_SRCS
}
)
set_target_properties
(
phonon_vlc PROPERTIES PREFIX
""
)
target_link_libraries
(
phonon_vlc
${
PHONON_LIBS
}
${
VLC_LIBRARIES
}
)
if
(
WIN32
)
install
(
TARGETS phonon_vlc DESTINATION bin/phonon_backend
)
else
(
WIN32
)
install
(
TARGETS phonon_vlc DESTINATION
${
PLUGIN_INSTALL_DIR
}
/plugins/phonon_backend
)
endif
(
WIN32
)
install
(
FILES vlc.desktop DESTINATION
${
SERVICES_INSTALL_DIR
}
/phononbackends
)
if
(
BUILD_TESTS
)
add_subdirectory
(
tests
)
endif
(
BUILD_TESTS
)
bindings/phonon/vlc/vlcloader.cpp
View file @
865ab4ed
...
...
@@ -93,7 +93,7 @@ void vlcRelease()
void
vlcExceptionRaised
()
{
if
(
libvlc_exception_raised
(
vlc_exception
))
{
qDebug
()
<<
"libvlc exception:"
<<
libvlc_e
xception_get_message
(
vlc_exception
);
qDebug
()
<<
"libvlc exception:"
<<
libvlc_e
rrmsg
(
);
libvlc_exception_clear
(
vlc_exception
);
}
}
...
...
bindings/phonon/vlc/vlcmediaobject.cpp
View file @
865ab4ed
...
...
@@ -172,7 +172,7 @@ void VLCMediaObject::seekInternal(qint64 milliseconds)
QString
VLCMediaObject
::
errorString
()
const
{
return
libvlc_e
xception_get_message
(
vlc_exception
);
return
libvlc_e
rrmsg
(
);
}
bool
VLCMediaObject
::
hasVideo
()
const
...
...
@@ -210,7 +210,7 @@ void VLCMediaObject::connectToAllVLCEvents()
// Get event manager from media descriptor object
p_vlc_media_event_manager
=
libvlc_media_event_manager
(
p_vlc_media
,
vlc_exception
);
p_vlc_media_event_manager
=
libvlc_media_event_manager
(
p_vlc_media
);
libvlc_event_type_t
eventsMedia
[]
=
{
libvlc_MediaMetaChanged
,
libvlc_MediaSubItemAdded
,
...
...
@@ -379,40 +379,40 @@ void VLCMediaObject::updateMetaData()
QMultiMap
<
QString
,
QString
>
metaDataMap
;
metaDataMap
.
insert
(
QLatin1String
(
"ARTIST"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Artist
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Artist
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"ALBUM"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Album
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Album
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"TITLE"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Title
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Title
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"DATE"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Date
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Date
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"GENRE"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Genre
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Genre
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"TRACKNUMBER"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_TrackNumber
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_TrackNumber
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"DESCRIPTION"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Description
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Description
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"COPYRIGHT"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_TrackNumber
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_TrackNumber
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"URL"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_URL
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_URL
)));
vlcExceptionRaised
();
metaDataMap
.
insert
(
QLatin1String
(
"ENCODEDBY"
),
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_EncodedBy
,
vlc_exception
)));
QString
::
fromUtf8
(
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_EncodedBy
)));
qDebug
()
<<
"updateMetaData(): artist:"
<<
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Artist
,
vlc_exception
);
<<
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Artist
);
vlcExceptionRaised
();
qDebug
()
<<
"updateMetaData(): title:"
<<
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Title
,
vlc_exception
);
<<
libvlc_media_get_meta
(
p_vlc_media
,
libvlc_meta_Title
);
vlcExceptionRaised
();
emit
metaDataChanged
(
metaDataMap
);
...
...
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