aboutsummaryrefslogtreecommitdiff
path: root/layer_video.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-27 02:37:33 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-27 02:37:33 +0200
commite22d703662aef2d756162c3800c542075c372666 (patch)
tree6d0251843175c8c34ea05061817ee9d934e078c5 /layer_video.cpp
parent21d9334b05e42018082ebbc9cdfbf2e95831bdd5 (diff)
downloadosc-graphics-e22d703662aef2d756162c3800c542075c372666.tar.gz
use initializer lists where convenient
Diffstat (limited to 'layer_video.cpp')
-rw-r--r--layer_video.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/layer_video.cpp b/layer_video.cpp
index eb179cb..eafe67a 100644
--- a/layer_video.cpp
+++ b/layer_video.cpp
@@ -27,7 +27,9 @@ static void display_cb(void *data, void *id);
}
LayerVideo::LayerVideo(const char *name, SDL_Rect geo, float opacity,
- const char *url) : Layer(name), mp(NULL), surf(NULL)
+ const char *url) :
+ Layer(name), mp(NULL), surf(NULL),
+ mutex(SDL_CreateMutex())
{
/* static initialization */
if (!vlcinst) {
@@ -54,8 +56,6 @@ LayerVideo::LayerVideo(const char *name, SDL_Rect geo, float opacity,
LayerVideo::rate(1.);
LayerVideo::paused(true);
- mutex = SDL_CreateMutex();
-
LayerVideo::url(url);
}