Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 1 commit
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jan 17, 2014
Rod Vagg minor fixes 03cbd04
Showing with 3 additions and 5 deletions.
  1. +2 4 src/mediainfo.cc
  2. +1 1  src/mediainfo.h
6 src/mediainfo.cc
View
@@ -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();
2  src/mediainfo.h
View
@@ -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 {

No commit comments for this range

Something went wrong with that request. Please try again.