rtsp: request keyframe exactly once
This commit is contained in:
parent
49c7d01789
commit
a8a3e4242b
@ -70,20 +70,15 @@ public:
|
|||||||
return; // we're not ready for the data yet
|
return; // we're not ready for the data yet
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf->flags.is_keyframe) {
|
if (!fHadKeyFrame) {
|
||||||
fHadKeyFrame = true;
|
fHadKeyFrame = buf->flags.is_keyframe;
|
||||||
}
|
|
||||||
|
|
||||||
if (!fRequestedKeyFrame) {
|
|
||||||
if (!fHadKeyFrame) {
|
|
||||||
printf("device_video_force_key: %p\n", this);
|
|
||||||
device_video_force_key(buf->buf_list->dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
fRequestedKeyFrame = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fHadKeyFrame) {
|
if (!fHadKeyFrame) {
|
||||||
|
if (!fRequestedKeyFrame) {
|
||||||
|
device_video_force_key(buf->buf_list->dev);
|
||||||
|
fRequestedKeyFrame = true;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user