FastLED 3.10.8
Loading...
Searching...
No Matches

◆ begin()

bool fl::Video::begin ( fl::filebuf_ptr h)

Definition at line 40 of file video.cpp.hpp.

40 {
41 if (!mImpl) {
42 FL_WARN("Video::begin: mImpl is null, manually constructed videos "
43 "must include full parameters.");
44 return false;
45 }
46 // Drop a previous admission failure before evaluating this attempt.
47 // Rejecting one source says nothing about the next; only a persistent
48 // setError() failure keeps blocking.
49 if (mAdmissionError) {
50 mError.clear();
51 mAdmissionError = false;
52 }
53 if (!handle) {
54 setAdmissionError("filebuf is null");
56 return false;
57 }
58 if (mError.size()) {
60 return false;
61 }
62 if (!mImpl->begin(handle)) {
63 setAdmissionError("unsupported or malformed FLED container");
64 return false;
65 }
66 return true;
67}
string mError
Definition video.h:125
void setAdmissionError(const string &error) FL_NO_EXCEPT
Definition video.h:117
VideoImplPtr mImpl
Definition video.h:124
bool mAdmissionError
Definition video.h:123
#define FL_WARN(...)
Definition log.h:437
#define FL_DBG
Definition log.h:553

References Video(), begin(), FL_DBG, fl::FL_NO_EXCEPT, FL_WARN, mAdmissionError, mError, mImpl, and setAdmissionError().

Referenced by begin(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: