diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-27 02:37:33 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-27 02:37:33 +0200 |
commit | e22d703662aef2d756162c3800c542075c372666 (patch) | |
tree | 6d0251843175c8c34ea05061817ee9d934e078c5 /layer_video.cpp | |
parent | 21d9334b05e42018082ebbc9cdfbf2e95831bdd5 (diff) | |
download | osc-graphics-e22d703662aef2d756162c3800c542075c372666.tar.gz |
use initializer lists where convenient
Diffstat (limited to 'layer_video.cpp')
-rw-r--r-- | layer_video.cpp | 6 |
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); } |