diff options
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); } |