[Redbutton-devel] SF.net SVN: redbutton: [233] redbutton-download/trunk/command.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-03-01 15:40:35
|
Revision: 233
http://svn.sourceforge.net/redbutton/?rev=233&view=rev
Author: skilvington
Date: 2007-03-01 07:40:32 -0800 (Thu, 01 Mar 2007)
Log Message:
-----------
try to make sure dvr device loses PID filters when we close demux devices
Modified Paths:
--------------
redbutton-download/trunk/command.c
Modified: redbutton-download/trunk/command.c
===================================================================
--- redbutton-download/trunk/command.c 2007-03-01 12:09:42 UTC (rev 232)
+++ redbutton-download/trunk/command.c 2007-03-01 15:40:32 UTC (rev 233)
@@ -11,6 +11,7 @@
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/ioctl.h>
#include "command.h"
#include "findmheg.h"
@@ -240,8 +241,9 @@
stream_ts(ts_fd, client);
/* clean up */
+ ioctl(audio_fd, DMX_STOP);
+ close(audio_fd);
close(ts_fd);
- close(audio_fd);
/* close the connection */
return true;
@@ -315,8 +317,9 @@
stream_ts(ts_fd, client);
/* clean up */
+ ioctl(video_fd, DMX_STOP);
+ close(video_fd);
close(ts_fd);
- close(video_fd);
/* close the connection */
return true;
@@ -407,9 +410,11 @@
stream_ts(ts_fd, client);
/* clean up */
- close(ts_fd);
+ ioctl(audio_fd, DMX_STOP);
+ ioctl(video_fd, DMX_STOP);
close(audio_fd);
close(video_fd);
+ close(ts_fd);
/* close the connection */
return true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|