Преглед на файлове

obs-outputs: Fix bug (RTMP only working once)

This was caused to do the new RTMP code that added support for multiple
streams; the stream index needs to be reset on RTMP_Close otherwise it
will keep using the wrong stream information.
jp9000 преди 10 години
родител
ревизия
c69b70b847
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      plugins/obs-outputs/librtmp/rtmp.c

+ 1 - 0
plugins/obs-outputs/librtmp/rtmp.c

@@ -4252,6 +4252,7 @@ RTMP_Close(RTMP *r)
         r->Link.streams[idx].playpath.av_val = NULL;
     }
 
+    r->Link.curStreamIdx = 0;
     r->Link.nStreams = 0;
 #endif
 }