Gstreamer DRM file detection

Tim Müller tim at centricular.com
Fri Jun 12 00:49:24 PDT 2015


On Thu, 2015-06-11 at 21:54 -0700, kcu wrote:

> I am developing a gstreamer based media player, i want to check whether a
> given file is drm file or not. i am a beginner, so please suggest me
> something...

If you try to decode it you'll get an error message on the bus, with a
GError that has error->domain == GST_STREAM_ERROR and error->code ==
GST_STREAM_ERROR_DECRYPT.

Or you use GstDiscoverer, which should give you the same error in the
the 'discovered' signal callback if there was a problem.

 Cheers
  -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list