summaryrefslogtreecommitdiff
path: root/ext/dvdnav/dvdnavsrc.c
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2006-01-20 14:18:20 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2006-01-20 14:18:20 +0000
commite8805d7869451bb92f773fb230d848e09f04a2a3 (patch)
tree3078330a4919c7f97aa01fc7ca1e0a8455534e72 /ext/dvdnav/dvdnavsrc.c
parentb34e7d995ba6304637dae1df48b9c6c462e4baee (diff)
fix up error domains, error strings, and use of translation
Original commit message from CVS: 2006-01-20 Thomas Vander Stichele <thomas at apestaart dot org> * ext/dvdnav/dvdnavsrc.c: (if): * ext/dvdread/stream_labels.c: * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_segment): * gst/realmedia/rmdemux.c: (gst_rmdemux_loop): fix up error domains, error strings, and use of translation * po/POTFILES.in: fix up this file, even though none of them are actually marked for build yet.
Diffstat (limited to 'ext/dvdnav/dvdnavsrc.c')
-rw-r--r--ext/dvdnav/dvdnavsrc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/dvdnav/dvdnavsrc.c b/ext/dvdnav/dvdnavsrc.c
index b22bfa61..e9accb92 100644
--- a/ext/dvdnav/dvdnavsrc.c
+++ b/ext/dvdnav/dvdnavsrc.c
@@ -53,11 +53,10 @@ GST_DEBUG_CATEGORY_STATIC (dvdnavsrc_debug);
#define DVDNAV_RAWCALL(func, params, elem, action) \
if (func params != DVDNAV_STATUS_OK) { \
GST_ELEMENT_ERROR (elem, LIBRARY, FAILED, \
- (_("Error invoking \"%s\": %s."), \
- #func, dvdnav_err_to_string ((elem)->dvdnav)), \
- GST_ERROR_SYSTEM); \
- action \
- }
+ (_("Library call failed.")), \
+ ("Error invoking \"%s\": %s.", \
+ #func, dvdnav_err_to_string ((elem)->dvdnav)));
+action}
/* Call a dvdnav function and, it it fails, report an error and return
from the current procedure. */
@@ -1527,7 +1526,7 @@ dvdnavsrc_open (DVDNavSrc * src)
g_return_val_if_fail (src->location != NULL, FALSE);
if (dvdnav_open (&src->dvdnav, (char *) src->location) != DVDNAV_STATUS_OK) {
- GST_ELEMENT_ERROR (src, LIBRARY, FAILED,
+ GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ,
(_("Failed to open DVD device '%s'."), src->location),
GST_ERROR_SYSTEM);
return FALSE;