MOptArgV points into opVect so it needs to stick around.
parent
e6de9c3e01
commit
f96e5e526d
|
@ -21,7 +21,6 @@
|
|||
|
||||
#include "zm_packet.h"
|
||||
#include "zm_signal.h"
|
||||
#include "zm_utils.h"
|
||||
#include <dlfcn.h>
|
||||
|
||||
#if HAVE_LIBVLC
|
||||
|
@ -213,7 +212,7 @@ void LibvlcCamera::Terminate() {
|
|||
int LibvlcCamera::PrimeCapture() {
|
||||
Debug(1, "Priming capture from %s, libvlc version %s", mPath.c_str(), (*libvlc_get_version_f)());
|
||||
|
||||
StringVector opVect = Split(Options(), ",");
|
||||
opVect = Split(Options(), ",");
|
||||
|
||||
// Set transport method as specified by method field, rtpUni is default
|
||||
if ( Method() == "rtpMulti" )
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define ZM_LIBVLC_CAMERA_H
|
||||
|
||||
#include "zm_camera.h"
|
||||
#include "zm_utils.h"
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
|
||||
|
@ -50,6 +51,7 @@ protected:
|
|||
std::string mPath;
|
||||
std::string mMethod;
|
||||
std::string mOptions;
|
||||
StringVector opVect; // mOptArgV will point into opVect so it needs to hang around
|
||||
char **mOptArgV;
|
||||
LibvlcPrivateData mLibvlcData;
|
||||
std::string mTargetChroma;
|
||||
|
|
Loading…
Reference in New Issue