[Redbutton-devel] SF.net SVN: redbutton: [260] redbutton-browser/trunk/MHEGBackend.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-03-26 13:02:25
|
Revision: 260
http://svn.sourceforge.net/redbutton/?rev=260&view=rev
Author: skilvington
Date: 2007-03-26 05:48:39 -0700 (Mon, 26 Mar 2007)
Log Message:
-----------
don't set PIDs until we are sure we could open the stream
Modified Paths:
--------------
redbutton-browser/trunk/MHEGBackend.c
Modified: redbutton-browser/trunk/MHEGBackend.c
===================================================================
--- redbutton-browser/trunk/MHEGBackend.c 2007-03-25 17:52:09 UTC (rev 259)
+++ redbutton-browser/trunk/MHEGBackend.c 2007-03-26 12:48:39 UTC (rev 260)
@@ -256,11 +256,6 @@
return NULL;
}
- if(have_audio)
- *audio_tag = audio_pid;
- if(have_video)
- *video_tag = video_pid;
-
/* set up the MHEGStream */
stream = safe_malloc(sizeof(MHEGStream));
@@ -298,6 +293,12 @@
stream->demux = NULL;
}
+ /* now we are sure it all worked, set up the return values */
+ if(have_audio)
+ *audio_tag = audio_pid;
+ if(have_video)
+ *video_tag = video_pid;
+
return stream;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|