mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed the Play function in the pictures plugin
This commit is contained in:
parent
dc0665ebf3
commit
b013f4ce83
4
HISTORY
4
HISTORY
@ -5563,3 +5563,7 @@ Video Disk Recorder Revision History
|
||||
- Added a section about "Logging" to PLUGINS.html (suggested by Torsten Kunkel).
|
||||
- Enhanced the SVDRP command CLRE to allow clearing the EPG data of a particular
|
||||
channel (thanks to Benjamin Hess).
|
||||
|
||||
2008-01-19: Version 1.5.14
|
||||
|
||||
- Fixed the Play function in the pictures plugin.
|
||||
|
@ -4,3 +4,8 @@ VDR Plugin 'pictures' Revision History
|
||||
2008-01-13: Version 0.0.1
|
||||
|
||||
- Initial revision.
|
||||
|
||||
2008-01-19: Version 0.0.2
|
||||
|
||||
- Fixed the Play function (when used from a directory in the pictures menu
|
||||
it always started with the next directory).
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* See the README file for copyright information and how to reach the author.
|
||||
*
|
||||
* $Id: entry.c 1.1 2008/01/13 11:29:27 kls Exp $
|
||||
* $Id: entry.c 1.2 2008/01/18 15:49:51 kls Exp $
|
||||
*/
|
||||
|
||||
#include "entry.h"
|
||||
@ -138,6 +138,11 @@ const cPictureEntry *cPictureEntry::NextPicture(const cPictureEntry *This) const
|
||||
return pe;
|
||||
}
|
||||
}
|
||||
else if (IsDirectory()) {
|
||||
const cPictureEntry *p = FirstPicture();
|
||||
if (p)
|
||||
return p;
|
||||
}
|
||||
if (parent)
|
||||
return parent->NextPicture(this);
|
||||
return NULL;
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* See the README file for copyright information and how to reach the author.
|
||||
*
|
||||
* $Id: pictures.c 1.1 2008/01/13 11:29:27 kls Exp $
|
||||
* $Id: pictures.c 1.2 2008/01/19 11:20:03 kls Exp $
|
||||
*/
|
||||
|
||||
#include <getopt.h>
|
||||
@ -11,7 +11,7 @@
|
||||
#include "menu.h"
|
||||
#include "player.h"
|
||||
|
||||
static const char *VERSION = "0.0.1";
|
||||
static const char *VERSION = "0.0.2";
|
||||
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 1.1 2008/01/13 11:29:27 kls Exp $
|
||||
* $Id: player.c 1.2 2008/01/19 11:01:58 kls Exp $
|
||||
*/
|
||||
|
||||
#include "player.h"
|
||||
@ -95,6 +95,7 @@ cPictureControl::cPictureControl(cPictureEntry *Pictures, const cPictureEntry *P
|
||||
pictureEntry = PictureEntry;
|
||||
osd = NULL;
|
||||
lastPath = "/";
|
||||
slideShowDelay.Set(SlideShowDelay * 1000);
|
||||
slideShow = SlideShow;
|
||||
alwaysDisplayCaption = false;
|
||||
NextPicture(slideShow && pictureEntry->IsDirectory() ? 1 : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user