[Redbutton-devel] SF.net SVN: redbutton: [230] redbutton-download/trunk/command.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-02-26 15:10:40
|
Revision: 230
http://svn.sourceforge.net/redbutton/?rev=230&view=rev
Author: skilvington
Date: 2007-02-26 07:10:33 -0800 (Mon, 26 Feb 2007)
Log Message:
-----------
dont send an empty a/v stream if we can't find the PIDs
Modified Paths:
--------------
redbutton-download/trunk/command.c
Modified: redbutton-download/trunk/command.c
===================================================================
--- redbutton-download/trunk/command.c 2007-02-25 10:21:50 UTC (rev 229)
+++ redbutton-download/trunk/command.c 2007-02-26 15:10:33 UTC (rev 230)
@@ -209,7 +209,10 @@
/* check we have a default stream */
if(streams->audio_pid == 0)
+ {
SEND_RESPONSE(500, "Unable to resolve audio PID");
+ return false;
+ }
/* add the PID to the demux device */
if((audio_fd = add_demux_filter(car->demux_device, streams->audio_pid, DMX_PES_AUDIO)) < 0)
@@ -281,7 +284,10 @@
/* check we have a default stream */
if(streams->video_pid == 0)
+ {
SEND_RESPONSE(500, "Unable to resolve video PID");
+ return false;
+ }
/* add the PID to the demux device */
if((video_fd = add_demux_filter(car->demux_device, streams->video_pid, DMX_PES_VIDEO)) < 0)
@@ -357,9 +363,15 @@
/* check we have a default stream */
if(streams->audio_pid == 0)
+ {
SEND_RESPONSE(500, "Unable to resolve audio PID");
+ return false;
+ }
if(streams->video_pid == 0)
+ {
SEND_RESPONSE(500, "Unable to resolve video PID");
+ return false;
+ }
/* add the PIDs to the demux device */
if((audio_fd = add_demux_filter(car->demux_device, streams->audio_pid, DMX_PES_AUDIO)) < 0)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|