]> git.vomp.tv Git - vompclient-marten.git/commitdiff
Keep compiler happy
authorChris Tallon <chris@vomp.tv>
Tue, 13 Jun 2006 23:14:02 +0000 (23:14 +0000)
committerChris Tallon <chris@vomp.tv>
Tue, 13 Jun 2006 23:14:02 +0000 (23:14 +0000)
demuxervdr.cc

index 526b300ec199699dff9e538a08d3f60f06ac8a3e..a969954db010ad7032f0edd7f252d8c4df078939 100644 (file)
@@ -282,7 +282,6 @@ ULONG DemuxerVDR::getFrameNumFromPTS(ULLONG pts)
     ++iter;
   }
   --iter;
-  if (onTarget) ret = iter->frame;
   pthread_mutex_unlock(&pts_map_mutex);
   if (!onTarget)
   {
@@ -291,17 +290,18 @@ ULONG DemuxerVDR::getFrameNumFromPTS(ULLONG pts)
   }
   else
   {
+    ret = iter->frame;
     Log::getInstance()->log("Demuxer", Log::DEBUG, "FOUND FRAME NUMBER %d for %llu", ret, pts);
     return ret;
   }
 }
+
 void DemuxerVDR::PESPacketVDR::parseDetails()
 {
   // TODO: Currently, we naïvely assume that a packet contains a new frame
   // if and only if it contains a pts, and that no packet contains more
   // than one new frame
-  
+
   DemuxerVDR* dx = (DemuxerVDR*)(DemuxerVDR::getInstance());
   PESPacket::parseDetails();
   if (dx->frameCounting && pts != PTS_INVALID &&