Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
89a8032d
Commit
89a8032d
authored
Apr 04, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eyetv plugin: change logic to support HD streams as suggested by cbscpe on the forums
parent
d3392936
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
extras/package/macosx/eyetvplugin/eyetvplugin.c
extras/package/macosx/eyetvplugin/eyetvplugin.c
+6
-8
No files found.
extras/package/macosx/eyetvplugin/eyetvplugin.c
View file @
89a8032d
/*****************************************************************************
/*****************************************************************************
* eyetvplugin.c: Plug-In for the EyeTV software to connect to VLC
* eyetvplugin.c: Plug-In for the EyeTV software to connect to VLC
*****************************************************************************
*****************************************************************************
* Copyright (C) 2006-20
07
the VideoLAN team
* Copyright (C) 2006-20
11
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Felix Kühne <fkuehne at videolan dot org>
* Authors: Felix Kühne <fkuehne at videolan dot org>
...
@@ -309,13 +309,10 @@ static long VLCEyeTVPluginPacketsArrived(VLCEyeTVPluginGlobals_t *globals, EyeTV
...
@@ -309,13 +309,10 @@ 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
))
)
{
memcpy
(
packetBuffer
+
packetBufferSize
,
*
packets
,
sizeof
(
TransportStreamPacket
));
/* copy packet in our buffer */
packetBufferSize
+=
sizeof
(
TransportStreamPacket
);
memcpy
(
packetBuffer
+
packetBufferSize
,
*
packets
,
sizeof
(
TransportStreamPacket
));
if
(
packetBufferSize
>
(
sizeof
(
packetBuffer
)
-
sizeof
(
TransportStreamPacket
))
)
packetBufferSize
+=
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 +328,7 @@ static long VLCEyeTVPluginPacketsArrived(VLCEyeTVPluginGlobals_t *globals, EyeTV
...
@@ -331,6 +328,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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment