summaryrefslogtreecommitdiff
path: root/command/demux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/demux.cpp')
-rw-r--r--command/demux.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/command/demux.cpp b/command/demux.cpp
index 905c3e2..9f634bd 100644
--- a/command/demux.cpp
+++ b/command/demux.cpp
@@ -1116,7 +1116,14 @@ void cDemux::DisableDPid()
if (ts2pkt_dpid) delete ts2pkt_dpid;
pes2audioes_ac3=NULL;
ts2pkt_dpid=NULL;
- dpid=0;
+ if (TS)
+ {
+ dpid=-1;
+ }
+ else
+ {
+ dpid=0;
+ }
stream_or_pid=0;
}