From e22d703662aef2d756162c3800c542075c372666 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 27 Sep 2012 02:37:33 +0200 Subject: use initializer lists where convenient --- layer_video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'layer_video.cpp') 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); } -- cgit v1.2.3