mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Fixed initializing cPictureControl
This commit is contained in:
		| @@ -116,3 +116,7 @@ VDR Plugin 'pictures' Revision History | ||||
| 2021-12-27: Version 2.6.0 | ||||
|  | ||||
| - Official release. | ||||
|  | ||||
| 2022-12-05: Version 2.6.1 | ||||
|  | ||||
| Fixed initializing cPictureControl. | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|  * | ||||
|  * See the README file for copyright information and how to reach the author. | ||||
|  * | ||||
|  * $Id: pictures.c 4.3 2018/04/10 13:00:42 kls Exp $ | ||||
|  * $Id: pictures.c 5.1 2022/12/05 15:26:23 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #include <getopt.h> | ||||
| @@ -11,7 +11,7 @@ | ||||
| #include "menu.h" | ||||
| #include "player.h" | ||||
|  | ||||
| static const char *VERSION       = "2.4.0"; | ||||
| static const char *VERSION       = "2.6.1"; | ||||
| static const char *DESCRIPTION   = trNOOP("A simple picture viewer"); | ||||
| static const char *MAINMENUENTRY = trNOOP("Pictures"); | ||||
|  | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|  * | ||||
|  * See the README file for copyright information and how to reach the author. | ||||
|  * | ||||
|  * $Id: player.c 3.1 2014/02/08 12:48:12 kls Exp $ | ||||
|  * $Id: player.c 5.1 2022/12/05 15:26:23 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #include "player.h" | ||||
| @@ -96,8 +96,10 @@ int cPictureControl::active = 0; | ||||
| cString cPictureControl::lastDisplayed; | ||||
|  | ||||
| cPictureControl::cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow) | ||||
| :cControl(player = new cPicturePlayer) | ||||
| :cControl(NULL) | ||||
| { | ||||
|   player = new cPicturePlayer; | ||||
|   SetPlayer(player); | ||||
|   pictures = Pictures; | ||||
|   pictureEntry = PictureEntry; | ||||
|   osd = NULL; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user