dvdnavsrc_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
{
DVDNavSrc *src;
- char *title_string;
+ const char *title_string;
/* it's not null if we got it, but it might not be ours */
g_return_if_fail (GST_IS_DVDNAVSRC (object));
/**
* Make sure the chapter number is valid for this title.
*/
- if (dvdnav_get_number_of_programs (src->dvdnav, &programs) != DVDNAV_STATUS_OK) {
+ if (dvdnav_get_number_of_titles (src->dvdnav, &programs) != DVDNAV_STATUS_OK) {
fprintf( stderr, "dvdnav_get_number_of_programs error: %s\n", dvdnav_err_to_string(src->dvdnav));
return FALSE;
}
case DVDNAV_STOP: return "DVDNAV_STOP"; break;
case DVDNAV_HIGHLIGHT: return "DVDNAV_HIGHLIGHT"; break;
case DVDNAV_SPU_CLUT_CHANGE: return "DVDNAV_SPU_CLUT_CHANGE"; break;
- case DVDNAV_SEEK_DONE: return "DVDNAV_SEEK_DONE"; break;
case DVDNAV_HOP_CHANNEL: return "DVDNAV_HOP_CHANNEL"; break;
+ case DVDNAV_WAIT: return "DVDNAV_WAIT"; break;
}
return "UNKNOWN";
}
break;
case DVDNAV_CELL_CHANGE:
{
- dvdnav_cell_change_event_t *event = (dvdnav_cell_change_event_t *)data;
- fprintf (stderr, " old_cell: %p\n", event->old_cell);
- fprintf (stderr, " new_cell: %p\n", event->new_cell);
+ /*dvdnav_cell_change_event_t *event = (dvdnav_cell_change_event_t *)data;*/
+ /*fprintf (stderr, " old_cell: %p\n", event->old_cell);*/
+ /*fprintf (stderr, " new_cell: %p\n", event->new_cell);*/
}
break;
case DVDNAV_NAV_PACKET:
{
+/*
dvdnav_nav_packet_event_t *event = (dvdnav_nav_packet_event_t *)data;
pci_t *pci;
dsi_t *dsi;
- /*
+
pci = event->pci;
dsi = event->dsi;
- */
+
pci = dvdnav_get_current_nav_pci(src->dvdnav);
dsi = dvdnav_get_current_nav_dsi(src->dvdnav);
fprintf (stderr, " pci: %p\n", event->pci);
fprintf (stderr, " dsi: %p\n", event->dsi);
- /*
+
navPrint_PCI(pci);
navPrint_DSI(dsi);
- */
+*/
}
break;
case DVDNAV_STOP:
break;
case DVDNAV_SPU_CLUT_CHANGE:
break;
- case DVDNAV_SEEK_DONE:
- break;
case DVDNAV_HOP_CHANNEL:
break;
+ case DVDNAV_WAIT:
+ break;
default:
fprintf (stderr, " event id: %d\n", event);
break;
case DVDNAV_AUDIO_STREAM_CHANGE:
case DVDNAV_HIGHLIGHT:
case DVDNAV_SPU_CLUT_CHANGE:
- case DVDNAV_SEEK_DONE:
case DVDNAV_HOP_CHANNEL:
+ case DVDNAV_WAIT:
default:
dvdnavsrc_print_event (src, data, event, len);
break;
new_part = part + offset;
break;
case GST_SEEK_METHOD_END:
- if (dvdnav_get_number_of_programs(src->dvdnav, &parts) !=
+ if (dvdnav_get_number_of_titles(src->dvdnav, &parts) !=
DVDNAV_STATUS_OK) {
goto error;
}
}
*value = titles;
} else if (*format == chapter_format) {
- if (dvdnav_get_number_of_programs(src->dvdnav, &parts) != DVDNAV_STATUS_OK) {
+ if (dvdnav_get_number_of_titles(src->dvdnav, &parts) != DVDNAV_STATUS_OK) {
res = FALSE;
}
*value = parts;