Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Help with MJPEG sample from RiseOfTheAnts.com
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jon E  
View profile  
 More options Mar 14 2008, 6:53 am
Newsgroups: microsoft.public.win32.programmer.directx.video
From: Jon E <J...@discussions.microsoft.com>
Date: Fri, 14 Mar 2008 03:53:00 -0700
Subject: Re: Help with MJPEG sample from RiseOfTheAnts.com
Hi Alessandro,

Just a minor update for your sample code.

In 'jpeg2mjpeg.cpp', there is a minor bugette. In 'FillBuffer', the code :-

if(INVALID_HANDLE_VALUE == (hf = CreateFile(fn,.....
 {
     DWORD rc = GetLastError();
    hr = ERROR_NOT_FOUND == rc ? S_FALSE : HRESULT_FROM_WIN32(rc);

'ERROR_NOT_FOUND' should read ERROR_FILE_NOT_FOUND, otherwise on stream
completion you not only get the graph notification EC_COMPLETE but also an
EC_ERROR_ABORT since FillBuffer never returns S_FALSE.

Like I said, only minor, thanks for posting the sample projects, they've
_really_ helped.

TTFN,
   Jon


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google