Skip to content

Commit

Permalink
DeckLink cap.: removed debug messages
Browse files Browse the repository at this point in the history
Those message are not prefixed with MOD_NAME, so harder to filter out
with eg. grep. Doesn't seem much useful so remove the messages entirely
as they are even marked as TOREMOVE. Can be readded if needed.
  • Loading branch information
MartinPulec committed Oct 25, 2023
1 parent 11988f3 commit ae53b2b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/video_capture/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,6 @@ VideoDelegate::VideoInputFrameArrived (IDeckLinkVideoInputFrame *videoFrame, IDe

// UNLOCK - UNLOCK - UNLOCK - UNLOCK - UNLOCK - UNLOCK - UNLOCK - UNLOCK - UN //

debug_msg("VideoInputFrameArrived - END\n"); /* TOREMOVE */

return S_OK;
}

Expand Down Expand Up @@ -1606,8 +1604,6 @@ static void postprocess_frame(struct vidcap_decklink_state *s) {
static struct video_frame *
vidcap_decklink_grab(void *state, struct audio_frame **audio)
{
debug_msg("vidcap_decklink_grab\n"); /* TO REMOVE */

struct vidcap_decklink_state *s = (struct vidcap_decklink_state *) state;
int tiles_total = 0;
int i;
Expand All @@ -1618,14 +1614,11 @@ vidcap_decklink_grab(void *state, struct audio_frame **audio)
unique_lock<mutex> lk(s->lock);
// LOCK - LOCK - LOCK - LOCK - LOCK - LOCK - LOCK - LOCK - LOCK - LOCK - LOCK //

debug_msg("vidcap_decklink_grab - before while\n"); /* TOREMOVE */

tiles_total = nr_frames(s);

while(tiles_total != s->devices_cnt) {
//while (!s->state[0].delegate->newFrameReady) {
cv_status rc = cv_status::no_timeout;
debug_msg("vidcap_decklink_grab - pthread_cond_timedwait\n"); /* TOREMOVE */
steady_clock::time_point t0(steady_clock::now());

while(rc == cv_status::no_timeout
Expand All @@ -1644,7 +1637,6 @@ vidcap_decklink_grab(void *state, struct audio_frame **audio)
timeout = 1;

}
debug_msg("vidcap_decklink_grab - AFTER pthread_cond_timedwait - %d tiles\n", tiles_total); /* TOREMOVE */

if (rc != cv_status::no_timeout || timeout || tiles_total == -1) { //(rc == ETIMEDOUT) {
log_msg(LOG_LEVEL_VERBOSE, "Waiting for new frame timed out!\n");
Expand Down

0 comments on commit ae53b2b

Please sign in to comment.