Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling start() on an already playing instance crashes application #141

Open
avilleret opened this issue Feb 13, 2019 · 1 comment
Open

Comments

@avilleret
Copy link
Contributor

it crashes with a weird backtrace :

Thread 11 "video_player-ar" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x68809140 (LWP 2949)]
0x75cdaa08 in ?? () from /usr/lib/arm-linux-gnueabihf/libavformat.so.57
(gdb) bt
#0  0x75cdaa08 in ?? () from /usr/lib/arm-linux-gnueabihf/libavformat.so.57
#1  0x75cda9fc in ?? () from /usr/lib/arm-linux-gnueabihf/libavformat.so.57
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

code to reproduce (modified example-basic setup() function) :

  string videoPath = ofToDataPath("/home/pi/big_buck_bunny_720p_h264.mov", true);
  ofLog() << "videoPath: " << videoPath;
  //Somewhat like ofFboSettings we may have a lot of options so this is the current model
  ofxOMXPlayerSettings settings;
  settings.useHDMIForAudio = true;	//default true
  settings.enableTexture = true;		//default true
  settings.enableLooping = true;		//default true
  settings.enableAudio = true;		//default true, save resources by disabling
  settings.doFlipTexture = true;		//default false
	
  //so either pass in the settings
  omxPlayer.setup(settings);

  omxPlayer.loadMovie(videoPath);
  omxPlayer.start();
@jvcleave
Copy link
Owner

Yeah - I can see how this could get confusing

if you want to use start() you should use:

settings.autoStart=false;
settings.videoPath = videoPath;
omxPlayer.setup(settings);
omxPlayer.start();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants