[shotwell] Use nice 19 for video thumbnailer
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Use nice 19 for video thumbnailer
- Date: Thu, 20 Apr 2017 18:21:43 +0000 (UTC)
commit b138c780f4f9412685e455d678516f5e5f292d43
Author: Jens Georg <mail jensge org>
Date: Mon Apr 17 08:04:42 2017 +0200
Use nice 19 for video thumbnailer
Signed-off-by: Jens Georg <mail jensge org>
thumbnailer.am | 3 ++-
thumbnailer/shotwell-video-thumbnailer.vala | 6 +++++-
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/thumbnailer.am b/thumbnailer.am
index 04362e0..6b835be 100644
--- a/thumbnailer.am
+++ b/thumbnailer.am
@@ -4,7 +4,8 @@ thumbnailer_shotwell_video_thumbnailer_SOURCES = thumbnailer/shotwell-video-thum
thumbnailer_shotwell_video_thumbnailer_VALAFLAGS = $(COMMON_VALAFLAGS) \
--pkg gstreamer-1.0 \
--pkg gee-0.8 \
- --pkg gtk+-3.0
+ --pkg gtk+-3.0 \
+ --pkg posix
thumbnailer_shotwell_video_thumbnailer_CFLAGS = $(THUMBNAILER_CFLAGS)
thumbnailer_shotwell_video_thumbnailer_LDADD = $(THUMBNAILER_LIBS)
diff --git a/thumbnailer/shotwell-video-thumbnailer.vala b/thumbnailer/shotwell-video-thumbnailer.vala
index 36a8203..2b381a6 100644
--- a/thumbnailer/shotwell-video-thumbnailer.vala
+++ b/thumbnailer/shotwell-video-thumbnailer.vala
@@ -19,7 +19,11 @@ class ShotwellThumbnailer {
uint8[]? pngdata;
int64 duration, position;
Gst.StateChangeReturn ret;
-
+
+ if (Posix.nice (19) < 0) {
+ debug ("Failed to reduce thumbnailer nice level. Continuing anyway");
+ }
+
Gst.init(ref args);
var registry = Gst.Registry.@get ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]