Merge lp:~jpakkane/thumbnailer/gst-disable into lp:thumbnailer

Proposed by Jussi Pakkanen
Status: Merged
Approved by: Jussi Pakkanen
Approved revision: 56
Merged at revision: 55
Proposed branch: lp:~jpakkane/thumbnailer/gst-disable
Merge into: lp:thumbnailer
Diff against target: 106 lines (+18/-11)
4 files modified
src/CMakeLists.txt (+3/-2)
src/audioimageextractor.cpp (+6/-0)
src/thumbnailer.cpp (+7/-7)
tools/CMakeLists.txt (+2/-2)
To merge this branch: bzr merge lp:~jpakkane/thumbnailer/gst-disable
Reviewer Review Type Date Requested Status
Timo Jyrinki Approve
Zoltan Balogh (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+189818@code.launchpad.net

Commit message

Disable use of in-process GStreamer because we use 1.0, which clashes with 0.10.

Description of the change

Disable use of in-process GStreamer because we use 1.0, which clashes with 0.10.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zoltan Balogh (bzoltan) :
review: Approve
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/CMakeLists.txt'
2--- src/CMakeLists.txt 2013-10-02 09:31:37 +0000
3+++ src/CMakeLists.txt 2013-10-08 11:12:12 +0000
4@@ -1,11 +1,12 @@
5 add_library(thumbnailer SHARED
6-audioimageextractor.cpp
7+#audioimageextractor.cpp
8 imagescaler.cpp
9 thumbnailcache.cpp
10 thumbnailer.cpp
11 videoscreenshotter.cpp
12 )
13-target_link_libraries(thumbnailer ${GST_DEPS_LDFLAGS} ${IMG_DEPS_LDFLAGS})
14+target_link_libraries(thumbnailer #${GST_DEPS_LDFLAGS}
15+ ${IMG_DEPS_LDFLAGS})
16 set_target_properties(thumbnailer PROPERTIES VERSION ${SO_VERSION} SOVERSION ${ABI_VERSION})
17
18 install(
19
20=== modified file 'src/audioimageextractor.cpp'
21--- src/audioimageextractor.cpp 2013-09-27 09:42:35 +0000
22+++ src/audioimageextractor.cpp 2013-10-08 11:12:12 +0000
23@@ -25,6 +25,11 @@
24
25 using namespace std;
26
27+class GstInitializer {
28+public:
29+ GstInitializer() { gst_init(nullptr, nullptr); };
30+};
31+
32 class AudioImageExtractorPrivate {
33 };
34
35@@ -48,6 +53,7 @@
36 }
37
38 AudioImageExtractor::AudioImageExtractor() {
39+ static GstInitializer i; // C++ standard guarantees this to be lazy and thread safe.
40 p = new AudioImageExtractorPrivate();
41 }
42
43
44=== modified file 'src/thumbnailer.cpp'
45--- src/thumbnailer.cpp 2013-10-02 13:01:08 +0000
46+++ src/thumbnailer.cpp 2013-10-08 11:12:12 +0000
47@@ -29,18 +29,13 @@
48
49 using namespace std;
50
51-class GstInitializer {
52-public:
53- GstInitializer() { gst_init(nullptr, nullptr); };
54-};
55-
56 class ThumbnailerPrivate {
57 private:
58 mt19937 rnd;
59
60 public:
61 ThumbnailCache cache;
62- AudioImageExtractor audio;
63+// AudioImageExtractor audio;
64 VideoScreenshotter video;
65 ImageScaler scaler;
66
67@@ -74,6 +69,11 @@
68 // Fail is ok, just try the next one.
69 }
70 bool extracted = false;
71+ // There was a symbol clas between 1.0 and 0.10 versions of
72+ // GStreamer on the desktop so we need to disable in-process
73+ // usage of gstreamer. Re-enable this once desktop moves to
74+ // newer Qt multimedia that has GStreamer 1.0.
75+/*
76 try {
77 if(audio.extract(abspath, tmpname)) {
78 extracted = true;
79@@ -85,6 +85,7 @@
80 unlink(tmpname.c_str());
81 return tnfile;
82 }
83+ */
84 try {
85 if(video.extract(abspath, tmpname)) {
86 extracted = true;
87@@ -101,7 +102,6 @@
88 }
89
90 Thumbnailer::Thumbnailer() {
91- static GstInitializer i; // C++ standard guarantees this to be lazy and thread safe.
92 p = new ThumbnailerPrivate();
93 }
94
95
96=== modified file 'tools/CMakeLists.txt'
97--- tools/CMakeLists.txt 2013-10-02 09:31:37 +0000
98+++ tools/CMakeLists.txt 2013-10-08 11:12:12 +0000
99@@ -1,5 +1,5 @@
100-add_executable(imdump imdump.cpp)
101-target_link_libraries(imdump thumbnailer)
102+#add_executable(imdump imdump.cpp)
103+#target_link_libraries(imdump thumbnailer ${GST_DEPS_LDFLAGS})
104
105 add_executable(scaler scaler.cpp)
106 target_link_libraries(scaler thumbnailer)

Subscribers

People subscribed via source and target branches

to all changes: