mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed a crash when jumping to an editing mark in an audio recording
This commit is contained in:
parent
8114d7c63e
commit
5ee2a21c8a
1
HISTORY
1
HISTORY
@ -6017,3 +6017,4 @@ Video Disk Recorder Revision History
|
|||||||
- Added missing virtual destructor to cPalette.
|
- Added missing virtual destructor to cPalette.
|
||||||
- Now freeing configDirectory before setting it to a new value in
|
- Now freeing configDirectory before setting it to a new value in
|
||||||
cPlugin::SetConfigDirectory().
|
cPlugin::SetConfigDirectory().
|
||||||
|
- Fixed a crash when jumping to an editing mark in an audio recording.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbdevice.c 2.12 2009/01/10 10:07:33 kls Exp $
|
* $Id: dvbdevice.c 2.13 2009/04/05 10:42:59 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbdevice.h"
|
#include "dvbdevice.h"
|
||||||
@ -1206,6 +1206,8 @@ void cDvbDevice::Mute(void)
|
|||||||
|
|
||||||
void cDvbDevice::StillPicture(const uchar *Data, int Length)
|
void cDvbDevice::StillPicture(const uchar *Data, int Length)
|
||||||
{
|
{
|
||||||
|
if (!Data || Length < TS_SIZE)
|
||||||
|
return;
|
||||||
if (Data[0] == 0x47) {
|
if (Data[0] == 0x47) {
|
||||||
// TS data
|
// TS data
|
||||||
cDevice::StillPicture(Data, Length);
|
cDevice::StillPicture(Data, Length);
|
||||||
|
Loading…
Reference in New Issue
Block a user