mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 20:31:20 +00:00
playsink: use proper error message code for failing state change
This commit is contained in:
parent
f456c673eb
commit
5e7ff51d19
1 changed files with 2 additions and 2 deletions
|
@ -1299,7 +1299,7 @@ no_sinks:
|
|||
(_("Both autovideosink and %s elements are not working."),
|
||||
DEFAULT_VIDEOSINK), (NULL));
|
||||
} else {
|
||||
GST_ELEMENT_ERROR (playsink, CORE, MISSING_PLUGIN,
|
||||
GST_ELEMENT_ERROR (playsink, CORE, STATE_CHANGE,
|
||||
(_("The autovideosink element is not working.")), (NULL));
|
||||
}
|
||||
}
|
||||
|
@ -1788,7 +1788,7 @@ no_sinks:
|
|||
(_("Both autoaudiosink and %s elements are not working."),
|
||||
DEFAULT_AUDIOSINK), (NULL));
|
||||
} else {
|
||||
GST_ELEMENT_ERROR (playsink, CORE, MISSING_PLUGIN,
|
||||
GST_ELEMENT_ERROR (playsink, CORE, STATE_CHANGE,
|
||||
(_("The autoaudiosink element is not working.")), (NULL));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue