From c5706d726b199cc68281e8d4806e3617d0a139c7 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 13 Nov 2016 16:29:23 -0800 Subject: [PATCH] obs-outputs: Use correct variable for drop priority There are two variables used for 'priority', the general marked frame priority, and the drop priority. They can sometimes be different because some encoders don't always use the correct frame priority. --- plugins/obs-outputs/rtmp-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-outputs/rtmp-stream.c b/plugins/obs-outputs/rtmp-stream.c index b8d20ed65..8e2ed7517 100644 --- a/plugins/obs-outputs/rtmp-stream.c +++ b/plugins/obs-outputs/rtmp-stream.c @@ -905,7 +905,7 @@ static bool add_video_packet(struct rtmp_stream *stream, /* if currently dropping frames, drop packets until it reaches the * desired priority */ - if (packet->priority < stream->min_priority) { + if (packet->drop_priority < stream->min_priority) { stream->dropped_frames++; return false; } else {