We’re showing branches in this repository, but you can also compare across forks.
|
|
rvagg |
minor fixes
|
03cbd04
|
| @@ -33,9 +33,7 @@ NAN_METHOD(NativeMediaInfo::New) { | ||
| NanScope(); | ||
| NativeMediaInfo* obj = new NativeMediaInfo(); | ||
| - MediaInfoLib::MediaInfo hand; | ||
| - | ||
| - obj->medinfo = &hand; | ||
| + obj->medinfo = new MediaInfoLib::MediaInfo(); | ||
| obj->medinfo->Option(__T("Info_Version"), __T("0.7.65;libmediainfo-native;0.0.1")); | ||
| obj->medinfo->Option(__T("Demux"), __T("All")); | ||
| obj->medinfo->Open_Buffer_Init(); | ||
| @@ -84,7 +82,7 @@ NAN_METHOD(NativeMediaInfo::Feed) { | ||
| } | ||
| } | ||
| */ | ||
| - NanReturnValue(scope.Close(retobj)); | ||
| + NanReturnValue(retobj); | ||
| } else { | ||
| // keep going! | ||
| NanReturnUndefined(); | ||
| @@ -1,7 +1,7 @@ | ||
| #ifndef NATIVEMEDIAINFO_H | ||
| #define NATIVEMEDIAINFO_H | ||
| -#include <node.h> | ||
| +#include <nan.h> | ||
| #include "MediaInfo/MediaInfo.h" | ||
| class NativeMediaInfo : public node::ObjectWrap { | ||