yolobs-studio/UI/frontend-plugins/decklink-captions/decklink-captions.h

31 lines
633 B
C
Raw Permalink Normal View History

2020-12-22 17:32:50 +00:00
#include <QDialog>
#include <obs-module.h>
#include <util/platform.h>
#include <obs.hpp>
#include <memory>
#include "ui_captions.h"
class DecklinkCaptionsUI : public QDialog {
Q_OBJECT
private:
public:
std::unique_ptr<Ui_CaptionsDialog> ui;
DecklinkCaptionsUI(QWidget *parent);
public slots:
void on_source_currentIndexChanged(int idx);
};
static inline OBSWeakSource GetWeakSourceByName(const char *name)
{
OBSWeakSource weak;
obs_source_t *source = obs_get_source_by_name(name);
if (source) {
weak = obs_source_get_weak_source(source);
obs_weak_source_release(weak);
obs_source_release(source);
}
return weak;
}