Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • videolan/libdvdnav
  • thresh/libdvdnav
  • robUx4/libdvdnav
  • jsgh/libdvdnav
  • chouquette/libdvdnav
  • jbk/libdvdnav
  • martymac/libdvdnav
  • Mathias_Couder/libdvdnav
  • DimitriPapadopoulos/libdvdnav
  • hpi/libdvdnav
  • miguelborgesdefreitas/libdvdnav
  • dmahurin/libdvdnav
  • ATinySpaceMarine/libdvdnav
  • masstock/libdvdnav
14 results
Show changes
Commits on Source (2)
......@@ -935,12 +935,12 @@ uint8_t dvdnav_get_video_aspect(dvdnav_t *this) {
return retval;
}
int dvdnav_get_video_resolution(dvdnav_t *this, uint32_t *width, uint32_t *height) {
dvdnav_status_t 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;
return DVDNAV_STATUS_ERR;
}
pthread_mutex_lock(&this->vm_lock);
......@@ -949,7 +949,7 @@ int dvdnav_get_video_resolution(dvdnav_t *this, uint32_t *width, uint32_t *heigh
*width = w;
*height = h;
return 0;
return DVDNAV_STATUS_OK;
}
uint8_t dvdnav_get_video_scale_permission(dvdnav_t *this) {
......@@ -1079,13 +1079,13 @@ int8_t dvdnav_get_audio_logical_stream(dvdnav_t *this, uint8_t audio_num) {
dvdnav_status_t dvdnav_get_audio_attr(dvdnav_t *this, uint8_t audio_num, audio_attr_t *audio_attr) {
if(!this->started) {
printerr("Virtual DVD machine not started.");
return -1;
return DVDNAV_STATUS_ERR;
}
pthread_mutex_lock(&this->vm_lock);
if (!this->vm->state.pgc) {
printerr("No current PGC.");
pthread_mutex_unlock(&this->vm_lock);
return -1;
return DVDNAV_STATUS_ERR;
}
*audio_attr=vm_get_audio_attr(this->vm, audio_num);
pthread_mutex_unlock(&this->vm_lock);
......@@ -1116,13 +1116,13 @@ int8_t dvdnav_get_spu_logical_stream(dvdnav_t *this, uint8_t subp_num) {
dvdnav_status_t dvdnav_get_spu_attr(dvdnav_t *this, uint8_t audio_num, subp_attr_t *subp_attr) {
if(!this->started) {
printerr("Virtual DVD machine not started.");
return -1;
return DVDNAV_STATUS_ERR;
}
pthread_mutex_lock(&this->vm_lock);
if (!this->vm->state.pgc) {
printerr("No current PGC.");
pthread_mutex_unlock(&this->vm_lock);
return -1;
return DVDNAV_STATUS_ERR;
}
*subp_attr=vm_get_subp_attr(this->vm, audio_num);
pthread_mutex_unlock(&this->vm_lock);
......
......@@ -571,7 +571,7 @@ 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);
dvdnav_status_t dvdnav_get_video_resolution(dvdnav_t *self, uint32_t *width, uint32_t *height);
/*
* Get video scaling permissions.
......