summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-04-15 14:46:57 +0200
committerJohns <johns98@gmx.net>2012-04-15 14:46:57 +0200
commit3ba18d87201a8ca14a72586a2e692f8d5a9a68b6 (patch)
tree326859a4245068b89d224aaf446d554b436cf3eb /softhddev.c
parent2ffcb874bbbdb5e85da13d7fcb089ef2a1142b52 (diff)
downloadvdr-plugin-softhddevice-3ba18d87201a8ca14a72586a2e692f8d5a9a68b6.tar.gz
vdr-plugin-softhddevice-3ba18d87201a8ca14a72586a2e692f8d5a9a68b6.tar.bz2
Add -D option to getopt.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/softhddev.c b/softhddev.c
index 1f0a453..75c8cb8 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -1408,6 +1408,7 @@ int VideoDecode(void)
if (last_codec_id != CODEC_ID_NONE) {
last_codec_id = CODEC_ID_NONE;
CodecVideoClose(MyVideoDecoder);
+ VideoSetClock(MyHwDecoder, AV_NOPTS_VALUE);
goto skip;
}
// FIXME: look if more close are in the queue
@@ -1639,6 +1640,7 @@ int PlayVideo(const uint8_t * data, int size)
VideoNextPacket(CODEC_ID_NONE);
VideoCodecID = CODEC_ID_NONE;
// clear clock until new stream starts
+ // FIXME: still reordered frames in queue
VideoSetClock(MyHwDecoder, AV_NOPTS_VALUE);
ClosingVideoStream = 1;
NewVideoStream = 0;
@@ -2214,7 +2216,7 @@ int ProcessArgs(int argc, char *const argv[])
// Parse arguments.
//
for (;;) {
- switch (getopt(argc, argv, "-a:c:d:fg:p:sv:w:x")) {
+ switch (getopt(argc, argv, "-a:c:d:fg:p:sv:w:xD")) {
case 'a': // audio device for pcm
AudioSetDevice(optarg);
continue;