Skip to content

Commit

Permalink
Remove unused media event callback functions from OCR filter
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Nov 25, 2024
1 parent 61ee81d commit b9eee36
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
40 changes: 0 additions & 40 deletions src/ocr-filter-callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,6 @@

#include <obs.h>

void media_play_callback(void *data_, calldata_t *cd)
{
UNUSED_PARAMETER(cd);
filter_data *gf_ = static_cast<struct filter_data *>(data_);
obs_log(LOG_INFO, "media_play");
gf_->isDisabled = false;
}

void media_started_callback(void *data_, calldata_t *cd)
{
UNUSED_PARAMETER(cd);
filter_data *gf_ = static_cast<struct filter_data *>(data_);
obs_log(LOG_INFO, "media_started");
gf_->isDisabled = false;
}

void media_pause_callback(void *data_, calldata_t *cd)
{
UNUSED_PARAMETER(cd);
filter_data *gf_ = static_cast<struct filter_data *>(data_);
obs_log(LOG_INFO, "media_pause");
gf_->isDisabled = true;
}

void media_restart_callback(void *data_, calldata_t *cd)
{
UNUSED_PARAMETER(cd);
filter_data *gf_ = static_cast<struct filter_data *>(data_);
obs_log(LOG_INFO, "media_restart");
gf_->isDisabled = false;
}

void media_stopped_callback(void *data_, calldata_t *cd)
{
UNUSED_PARAMETER(cd);
filter_data *gf_ = static_cast<struct filter_data *>(data_);
obs_log(LOG_INFO, "media_stopped");
gf_->isDisabled = true;
}

void enable_callback(void *data_, calldata_t *cd)
{
filter_data *gf_ = static_cast<struct filter_data *>(data_);
Expand Down
5 changes: 0 additions & 5 deletions src/ocr-filter-callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@

#include <callback/calldata.h>

void media_play_callback(void *data_, calldata_t *cd);
void media_started_callback(void *data_, calldata_t *cd);
void media_pause_callback(void *data_, calldata_t *cd);
void media_restart_callback(void *data_, calldata_t *cd);
void media_stopped_callback(void *data_, calldata_t *cd);
void enable_callback(void *data_, calldata_t *cd);

0 comments on commit b9eee36

Please sign in to comment.