mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Add -D option to getopt.
This commit is contained in:
parent
2ffcb874bb
commit
3ba18d8720
@ -1408,6 +1408,7 @@ int VideoDecode(void)
|
|||||||
if (last_codec_id != CODEC_ID_NONE) {
|
if (last_codec_id != CODEC_ID_NONE) {
|
||||||
last_codec_id = CODEC_ID_NONE;
|
last_codec_id = CODEC_ID_NONE;
|
||||||
CodecVideoClose(MyVideoDecoder);
|
CodecVideoClose(MyVideoDecoder);
|
||||||
|
VideoSetClock(MyHwDecoder, AV_NOPTS_VALUE);
|
||||||
goto skip;
|
goto skip;
|
||||||
}
|
}
|
||||||
// FIXME: look if more close are in the queue
|
// 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);
|
VideoNextPacket(CODEC_ID_NONE);
|
||||||
VideoCodecID = CODEC_ID_NONE;
|
VideoCodecID = CODEC_ID_NONE;
|
||||||
// clear clock until new stream starts
|
// clear clock until new stream starts
|
||||||
|
// FIXME: still reordered frames in queue
|
||||||
VideoSetClock(MyHwDecoder, AV_NOPTS_VALUE);
|
VideoSetClock(MyHwDecoder, AV_NOPTS_VALUE);
|
||||||
ClosingVideoStream = 1;
|
ClosingVideoStream = 1;
|
||||||
NewVideoStream = 0;
|
NewVideoStream = 0;
|
||||||
@ -2214,7 +2216,7 @@ int ProcessArgs(int argc, char *const argv[])
|
|||||||
// Parse arguments.
|
// Parse arguments.
|
||||||
//
|
//
|
||||||
for (;;) {
|
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
|
case 'a': // audio device for pcm
|
||||||
AudioSetDevice(optarg);
|
AudioSetDevice(optarg);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user