Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9734b1ff
Commit
9734b1ff
authored
Jun 01, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contribs: update libdvdnav patches
Resolution and Win32 threads have been merged upstream
parent
14bb0136
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
94 deletions
+0
-94
extras/contrib/src/Makefile
extras/contrib/src/Makefile
+0
-1
extras/contrib/src/Patches/libdvdnav-resolution.patch
extras/contrib/src/Patches/libdvdnav-resolution.patch
+0
-80
extras/contrib/src/Patches/libdvdnav.patch
extras/contrib/src/Patches/libdvdnav.patch
+0
-13
No files found.
extras/contrib/src/Makefile
View file @
9734b1ff
...
@@ -1206,7 +1206,6 @@ ifdef SVN
...
@@ -1206,7 +1206,6 @@ ifdef SVN
libdvdnav
:
libdvdnav
:
$(SVN)
co
$(LIBDVDNAV_SVN)
libdvdnav
$(SVN)
co
$(LIBDVDNAV_SVN)
libdvdnav
patch
-d
libdvdnav
-p0
< Patches/libdvdnav.patch
patch
-d
libdvdnav
-p0
< Patches/libdvdnav.patch
patch
-d
libdvdnav
-p0
< Patches/libdvdnav-resolution.patch
(
cd
$@
;
./autogen.sh noconfig
)
(
cd
$@
;
./autogen.sh noconfig
)
else
else
libdvdnav-$(LIBDVDNAV_VERSION).tar.gz
:
libdvdnav-$(LIBDVDNAV_VERSION).tar.gz
:
...
...
extras/contrib/src/Patches/libdvdnav-resolution.patch
deleted
100644 → 0
View file @
14bb0136
Index: src/dvdnav/dvdnav.h
===================================================================
--- src/dvdnav/dvdnav.h (revision 1191)
+++ src/dvdnav/dvdnav.h (working copy)
@@ -553,6 +553,11 @@
uint8_t dvdnav_get_video_aspect(dvdnav_t *self);
/*
+ * Get video resolution.
+ */
+int dvdnav_get_video_resolution(dvdnav_t *self, uint32_t *width, uint32_t *height);
+
+/*
* Get video scaling permissions.
* The scaling permission does only change on VTS boundaries.
* See the DVDNAV_VTS_CHANGE event.
Index: src/vm/vm.c
===================================================================
--- src/vm/vm.c (revision 1191)
+++ src/vm/vm.c (working copy)
@@ -858,8 +858,8 @@
break;
}
}
+#endif
-/* currently unused */
void vm_get_video_res(vm_t *vm, int *width, int *height) {
video_attr_t attr = vm_get_video_attr(vm);
@@ -883,7 +883,6 @@
break;
}
}
-#endif
int vm_get_video_aspect(vm_t *vm) {
int aspect = vm_get_video_attr(vm).display_aspect_ratio;
Index: src/vm/vm.h
===================================================================
--- src/vm/vm.h (revision 1191)
+++ src/vm/vm.h (working copy)
@@ -159,8 +159,8 @@
/* currently unused */
void vm_get_audio_info(vm_t *vm, int *current, int *num_avail);
void vm_get_subp_info(vm_t *vm, int *current, int *num_avail);
+#endif
void vm_get_video_res(vm_t *vm, int *width, int *height);
-#endif
int vm_get_video_aspect(vm_t *vm);
int vm_get_video_scale_permission(vm_t *vm);
video_attr_t vm_get_video_attr(vm_t *vm);
Index: src/dvdnav.c
===================================================================
--- src/dvdnav.c (revision 1191)
+++ src/dvdnav.c (working copy)
@@ -844,7 +844,23 @@
return retval;
}
+int dvdnav_get_video_resolution(dvdnav_t *this, uint32_t *width, uint32_t *height) {
+ int w, h;
+ if(!this->started) {
+ printerr("Virtual DVD machine not started.");
+ return -1;
+ }
+
+ pthread_mutex_lock(&this->vm_lock);
+ vm_get_video_res(this->vm, &w, &h);
+ pthread_mutex_unlock(&this->vm_lock);
+
+ *width = w;
+ *height = h;
+ return 0;
+}
+
uint8_t dvdnav_get_video_scale_permission(dvdnav_t *this) {
uint8_t retval;
extras/contrib/src/Patches/libdvdnav.patch
View file @
9734b1ff
...
@@ -46,16 +46,3 @@ Index: Makefile.am
...
@@ -46,16 +46,3 @@ Index: Makefile.am
EXTRA_DIST = autogen.sh \
EXTRA_DIST = autogen.sh \
AUTHORS \
AUTHORS \
Index: src/dvdnav_internal.h
===================================================================
--- src/dvdnav_internal.h (revision 1136)
+++ src/dvdnav_internal.h working copy)
@@ -37,7 +37,7 @@
#define pthread_mutex_init(a, b) InitializeCriticalSection(a)
#define pthread_mutex_lock(a) EnterCriticalSection(a)
#define pthread_mutex_unlock(a) LeaveCriticalSection(a)
-#define pthread_mutex_destroy(a)
+#define pthread_mutex_destroy(a) DeleteCriticalSection(a)
/* replacement gettimeofday implementation */
#include <sys/timeb.h>
\ No newline at end of file
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