mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
cddabasesrc: Never return a negative track number in get_uri()
This commit is contained in:
parent
acaeed6131
commit
27d4f9dca3
1 changed files with 3 additions and 1 deletions
|
@ -937,7 +937,9 @@ gst_cdda_base_src_uri_get_uri (GstURIHandler * handler)
|
|||
g_free (src->uri);
|
||||
|
||||
if (GST_OBJECT_FLAG_IS_SET (GST_BASE_SRC (src), GST_BASE_SRC_STARTED)) {
|
||||
src->uri = g_strdup_printf ("cdda://%s#%d", src->device, src->uri_track);
|
||||
src->uri =
|
||||
g_strdup_printf ("cdda://%s#%d", src->device,
|
||||
(src->uri_track > 0) ? src->uri_track : 1);
|
||||
} else {
|
||||
src->uri = g_strdup ("cdda://1");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue