Michael Zenov | 14 Jun 2012 13:13
Picon

Windows C++ application crush

I made a simple demo program in C + + and run it in Linux and then Windows.
In Linux, everything is fine, but Windows program crashes. Video clip
= ~ 30 sec, audio clip = ~ 3.30 sec. Windows program crashes when the
video ends, the Linux program continues to play audio. The source code
below.

#include <Mlt.h>
using namespace Mlt;
using namespace std;

#include <iostream>
#include <stdlib.h>

#ifdef WIN32
extern "C" {
#include <SDL.h>
}

void eventHandling()
{
       SDL_Event event;
       while( SDL_PollEvent( &event ) ){
               switch( event.type ){
         case SDL_KEYDOWN:
                 if ( event.key.keysym.sym  = SDLK_q ) {
                         std::cout<< "Nice exit" << std::endl;
                         exit(0);
                 }
         default:
                 ;
(Continue reading)

Dan Dennedy | 16 Jun 2012 03:07
Favicon

Re: Windows C++ application crush

On Thu, Jun 14, 2012 at 4:13 AM, Michael Zenov <penzus <at> gmail.com> wrote:
> I made a simple demo program in C + + and run it in Linux and then Windows.
> In Linux, everything is fine, but Windows program crashes. Video clip
> = ~ 30 sec, audio clip = ~ 3.30 sec. Windows program crashes when the

The below works fine for me with melt.exe:

melt -profile square_pal /c/Users/Public/Videos/Sample\
Videos/Wildlife.wmv -track /c/Users/Public/Music/Sample\
Music/Kalimba.mp3 video_index=-1

> video ends, the Linux program continues to play audio. The source code
> below.

Sorry, but I am not available to help you with your program.

>
> #include <Mlt.h>
> using namespace Mlt;
> using namespace std;
>
> #include <iostream>
> #include <stdlib.h>
>
> #ifdef WIN32
> extern "C" {
> #include <SDL.h>
> }
>
> void eventHandling()
(Continue reading)


Gmane