examples/dump_pids.c: also print hex value of PID.

[email protected] (Jean-Paul Saman)
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | Mon Feb  3 17:18:32 2014 +0100| [932c82e15cd589d0127595ce77acce331f992693] | committer: Jean-Paul Saman

examples/dump_pids.c: also print hex value of PID.

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=932c82e15cd589d0127595ce77acce331f992693
---

 examples/dump_pids.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/dump_pids.c b/examples/dump_pids.c
index cd40215..58a4768 100644
--- a/examples/dump_pids.c
+++ b/examples/dump_pids.c
@@ -49,7 +49,7 @@ int main(int argc, char *argv[])
         uint32_t pid = ts_getpid(&p[0]);
         uint32_t cc  = ts_getcc(&p[0]);
         n++;
-        printf("packet %ld, pid %u, cc %d\n", n, pid, cc );
+        printf("packet %ld, pid %u (0x%x), cc %d\n", n, pid, pid, cc );
     }
 
     close(file);

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.