37 lines
807 B
C++

#pragma once
#ifdef TRANSCODER_EXPORTS
#define API __declspec(dllexport)
#else
#define API __declspec(dllimport)
#endif
#include <iostream>
#include <sstream>
extern "C" struct Stream
{
char *title;
char *language;
char *codec;
bool is_default;
bool is_forced;
char *path;
Stream()
: title(NULL), language(NULL), codec(NULL), is_default(NULL), is_forced(NULL), path(NULL) {}
Stream(const char* title, const char* languageCode, const char* codec, bool isDefault, bool isForced)
: title(NULL), language(NULL), codec(NULL), is_default(isDefault), is_forced(isForced), path(NULL)
{
if(title != NULL)
this->title= strdup(title);
if (languageCode != NULL)
language = strdup(languageCode);
else
language = strdup("und");
if (codec != NULL)
this->codec = strdup(codec);
}
};