Commit fc617621 authored by Felix Paul Kühne's avatar Felix Paul Kühne

eyetv plugin: change logic to support HD streams as suggested by cbscpe on the...

eyetv plugin: change logic to support HD streams as suggested by cbscpe on the forums and prepare for a potential release
parent 394b44d8
B/* Localized versions of Info.plist keys */ B/* Localized versions of Info.plist keys */
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>English</string> <string>English</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string> <string>${EXECUTABLE_NAME}</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
<string></string> <string></string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>org.videolan.vlceyetvplugin</string> <string>org.videolan.vlceyetvplugin</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>BNDL</string> <string>BNDL</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0</string> <string>1.1</string>
<key>CFPlugInDynamicRegisterFunction</key> <key>CFPlugInDynamicRegisterFunction</key>
<string></string> <string></string>
<key>CFPlugInDynamicRegistration</key> <key>CFPlugInDynamicRegistration</key>
......
...@@ -309,13 +309,9 @@ static long VLCEyeTVPluginPacketsArrived(VLCEyeTVPluginGlobals_t *globals, EyeTV ...@@ -309,13 +309,9 @@ static long VLCEyeTVPluginPacketsArrived(VLCEyeTVPluginGlobals_t *globals, EyeTV
{ {
if( globals->activePIDs[i].pid == pid ) if( globals->activePIDs[i].pid == pid )
{ {
if( packetBufferSize <= (sizeof(packetBuffer)-sizeof(TransportStreamPacket)) )
{
/* copy packet in our buffer */
memcpy(packetBuffer+packetBufferSize, *packets, sizeof(TransportStreamPacket)); memcpy(packetBuffer+packetBufferSize, *packets, sizeof(TransportStreamPacket));
packetBufferSize += sizeof(TransportStreamPacket); packetBufferSize += sizeof(TransportStreamPacket);
} if( packetBufferSize > (sizeof(packetBuffer)-sizeof(TransportStreamPacket)) )
else
{ {
/* flush buffer to VLC */ /* flush buffer to VLC */
ssize_t sent = write(i_vlcSock, packetBuffer, packetBufferSize); ssize_t sent = write(i_vlcSock, packetBuffer, packetBufferSize);
...@@ -331,6 +327,7 @@ static long VLCEyeTVPluginPacketsArrived(VLCEyeTVPluginGlobals_t *globals, EyeTV ...@@ -331,6 +327,7 @@ static long VLCEyeTVPluginPacketsArrived(VLCEyeTVPluginGlobals_t *globals, EyeTV
} }
packetBufferSize = 0; packetBufferSize = 0;
} }
if( i > 0 ) if( i > 0 )
{ {
/* if we assume that consecutive packets would have the same PID in most cases, /* if we assume that consecutive packets would have the same PID in most cases,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment