mirror of https://github.com/odrling/Aegisub
Updated CSRI subtitles provider to conform to new csri.h
Originally committed to SVN as r864.
This commit is contained in:
parent
b206573965
commit
893361cca7
|
@ -41,7 +41,6 @@
|
||||||
#include "video_context.h"
|
#include "video_context.h"
|
||||||
#define CSRIAPI __declspec(dllexport)
|
#define CSRIAPI __declspec(dllexport)
|
||||||
#include "csri/csri.h"
|
#include "csri/csri.h"
|
||||||
#include "csri/loader.h"
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////
|
///////////////////
|
||||||
|
@ -139,7 +138,7 @@ void CSRISubtitlesProvider::DrawSubtitles(AegiVideoFrame &dst,double time) {
|
||||||
format.width = dst.w;
|
format.width = dst.w;
|
||||||
format.height = dst.h;
|
format.height = dst.h;
|
||||||
format.pixfmt = frame.pixfmt;
|
format.pixfmt = frame.pixfmt;
|
||||||
int error = csri_query_fmt(instance,&format);
|
int error = csri_request_fmt(instance,&format);
|
||||||
if (error) return;
|
if (error) return;
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
|
|
Loading…
Reference in New Issue